qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Could configure generate QEMU's linker scripts?
@ 2013-05-19 16:30 Ed Maste
  2013-05-19 19:24 ` Paolo Bonzini
  2013-05-20 17:21 ` Richard Henderson
  0 siblings, 2 replies; 14+ messages in thread
From: Ed Maste @ 2013-05-19 16:30 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel

On 19 May 2013 10:51, in a thread relating to the sparc-linux-user
linker script, Michael Tokarev <mjt@tls.msk.ru> 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?

Improved bsd-user support is in development in FreeBSD, and I'm trying
to upstream the basic changes that are in the FreeBSD ports tree
before others start submitting that work.  One of these changes is a
patch that replaces the x86_64.ld and i386.ld linker scripts with ones
suitable for FreeBSD, but makes them unsuitable for Linux.  I'd rather
not end up just introducing a parallel set of ldscript files for
FreeBSD, so would like to generate it from the default built-in one if
possible.

For the FreeBSD x86-64 case I can create a suitable linker script (at
least, one identical to what's in the FreeBSD ports tree) with just
the following:

ld --verbose | sed \
    -e '1,/==================================================/d' \
    -e '/==================================================/,$d' \
    -e 's/0x400000/0x60000000/g'

That is, it just changes the start address.  Is this generally the
only difference between QEMU's linker scripts and system built-ins?
(Perhaps we're missing other changes in FreeBSD, or platforms other
than x86_64 have more extensive changes?)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-06-05  9:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-19 16:30 [Qemu-devel] Could configure generate QEMU's linker scripts? Ed Maste
2013-05-19 19:24 ` Paolo Bonzini
2013-05-20  0:22   ` Aurelien Jarno
2013-05-20 17:21 ` Richard Henderson
2013-05-21 17:51   ` Ed Maste
2013-05-21 18:14     ` Richard Henderson
2013-06-02 17:15   ` Peter Maydell
2013-06-03 14:23     ` Richard Henderson
2013-06-03 14:57       ` Peter Maydell
2013-06-03 15:01         ` Richard Henderson
2013-06-04 15:55         ` Claudio Fontana
2013-06-04 16:13           ` Peter Maydell
2013-06-04 16:18             ` Richard Henderson
2013-06-05  9:03             ` Claudio Fontana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).