From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by sourceware.org (Postfix) with ESMTPS id 707EB3858C56 for ; Thu, 16 Jun 2022 07:37:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 707EB3858C56 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E40CE61C19 for ; Thu, 16 Jun 2022 07:37:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71DF4C34114 for ; Thu, 16 Jun 2022 07:37:29 +0000 (UTC) User-agent: mu4e 1.6.10; emacs 28.1 From: Felipe Balbi To: binutils@sourceware.org Subject: GNU ld and GBZ80 Date: Thu, 16 Jun 2022 10:34:04 +0300 Message-ID: <878rpxm53e.fsf@balbi.sh> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2022 07:37:32 -0000 Hi folks, I've been trying to figure out how to use GNU binutils for GBZ80 developemnt, however the linker doesn't seem to want to link anything. Is that expected or is it just a bug in ld? Just fyi, if I start manually set the origin of the memory with .org $0100 and assemble it, the file is runnable on an emulator, but I try to let the linker handle that for me, I get an error message: z80-none-elf-ld: main.o: Instruction sets of object files \ incompatible Any suggestions are appreciated :) -- balbi