From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29075 invoked from network); 3 Mar 2023 21:02:55 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2023 21:02:55 -0000 Received: from duke.felloff.net ([216.126.196.34]) by 9front; Fri Mar 3 16:00:06 -0500 2023 Message-ID: <859F297B22C45B7453E14CCF75E203C8@felloff.net> Date: Fri, 03 Mar 2023 21:59:55 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: hypervisor pipelining engine Subject: Re: [9front] Re: [PATCH] game boy advance header target for 5l Reply-To: 9front@9front.org Precedence: bulk > I dont want to do relocation, I just want to know > why external programs that only work under assumptions > of how the a.out was linked are preferable to just > having the linker output correct files. Sorry, then i must have misundersood you. > If everyone else is in agreement that this kind of header > code should only be done in external programs, should that > code also be moved to be external or deleted? I do not see a need to be dogmatic about this at all or force a decision. I do not have any skin in this game nor do i have a gameboy. Was just pointing out why an external tool would only solve half the problem in this case. But i think we agree here. A external tool made perfect sense for uimage as we want to generate both an a.out (for debugger and /dev/reboot) and a uimage for uboot. Linking is quite expensive compared to just writing out a header and copying some data out of a file and calculating a checksum. For the gameboy rom image problem, my first guess would be to just generate the header using the assembler and pass that as the first object to the linker and have the linker geneate headerless image. -- cinap