From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeTmO-0003sP-0k for qemu-devel@nongnu.org; Mon, 20 May 2013 13:21:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeTmH-0008VZ-8c for qemu-devel@nongnu.org; Mon, 20 May 2013 13:21:47 -0400 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:41501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeTmH-0008VM-4m for qemu-devel@nongnu.org; Mon, 20 May 2013 13:21:41 -0400 Received: by mail-qc0-f178.google.com with SMTP id l11so2970656qcy.37 for ; Mon, 20 May 2013 10:21:40 -0700 (PDT) Sender: Richard Henderson Message-ID: <519A5B9F.6090507@twiddle.net> Date: Mon, 20 May 2013 10:21:35 -0700 From: Richard Henderson MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Could configure generate QEMU's linker scripts? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Maste Cc: Michael Tokarev , qemu-devel@nongnu.org On 05/19/2013 09:30 AM, Ed Maste wrote: > On 19 May 2013 10:51, in a thread relating to the sparc-linux-user > linker script, Michael Tokarev wrote: >> If we apply this for 1.5, it will be the first release of debian >> package without extra fixes. Hopefully anyway :) >> >> (Ofcourse we may add more fixes later but... ;) > > Would it be reasonable to have QEMU's configure use sed or awk to > start with ld's built-in linker script and transform it with the > necessary modifications? In general I believe that using the -Ttext-segment ADDR flag for ld would completely obviate the need for even editing the link script. > That is, it just changes the start address. Is this generally the > only difference between QEMU's linker scripts and system built-ins? Yes. r~