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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, NICE_REPLY_A autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 16119 invoked from network); 2 Mar 2023 17:54:00 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 2 Mar 2023 17:54:00 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Thu Mar 2 12:50:45 -0500 2023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1677779762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t9EMfcd62tzc8WreHLElyph1H2LDlYedsYz7oqdJLPo=; b=dOtaNu+sEydsRVC4Mbk2dZycDV+3xAIDADc865Q9XQBsw3q4t2F16eM43hvHeBiIA8db/m wExJC32UlnXUy5mjTBbVxOvPPyrqu4SXI5vMqrFWiGdSErlo7md8ANfXN041vaiNtRGTi3 YuhWcnZqifvE6wJdAK8a6Wt8yFizgds= Received: from [192.168.168.200] (161-097-205-025.v4.mynextlight.net [161.97.205.25]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 9f6645d2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Thu, 2 Mar 2023 11:56:02 -0600 (CST) Message-ID: Date: Thu, 2 Mar 2023 10:50:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Content-Language: en-US To: 9front@9front.org References: From: Jacob Moody In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: XML injection firewall deep-learning-aware solution Subject: Re: [9front] Re: [PATCH] game boy advance header target for 5l Reply-To: 9front@9front.org Precedence: bulk On 3/2/23 10:33, cinap_lenrek@felloff.net wrote: > i dont think that a.out (arm) have relocatable code. > > aout2uimage does not relocate the image (abslute addresses > are encoded inside instruction immediates) but only > changes the header and handles some padding stuff. > > the load address (and entry point) all *MUST* stay the > same no matter if it is wrapped in a.out or uimage. > > this is why you need the -T flag for the linker. theres > no relocation info in a.out as far as i remember. > so writing a external tool to convert an a.out to ???? > requiering relocation will have a hard time. > > -- > cinap 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. I wrote it this way because there was some existing precedent in 5l creating boot images for ipaq and ixp1200 in the code. 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?