All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3 v3] Change search path for libraries for x86_64 linker script
@ 2009-07-22 20:37 Juan Quintela
  2009-07-22 20:37 ` [Qemu-devel] [PATCH 1/3] our build system don't support mips little endian linux-user or bsd-user Juan Quintela
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Juan Quintela @ 2009-07-22 20:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori

Hi

As requested for Anthony, we use as search path the output of:

ld --verbose -v | grep SEARCH_PATH

Anthony suggestion was to use a INCLUDE in the linker script, but it got
complicated because we have a relative path, and we want to get it working
with VPATH ....

Then I decided to use a second linker script for the search path instead of
one INCLUDE.

Once playing with linker scripts, just:
a- remove mips little endian linker scripts.  Rest of the build system don't
   support them at all (and they are the same than for big endian)
b- once here, instead of repeating the LDFLAGS line for each architecture,
   just generate it in a single place in configure
c- now that there are few places, add the new linker script.

Comments?

Later, Juan.

Changes from v1/v2:
- complete different approach

Juan Quintela (3):
  our build system don't support mips little endian linux-user or
    bsd-user
  generate LDFLAGS for *-linux-user and *-bsd-user in a single place in
    configure
  set SEARCH_PATH for the linker script from output of ld --verbose -v

 Makefile        |    2 +-
 Makefile.target |  148 ------------------------------------
 alpha.ld        |    1 -
 arm.ld          |    1 -
 configure       |   52 +++++++++++++
 hppa.ld         |    1 -
 i386.ld         |    1 -
 ia64.ld         |    4 +-
 m68k.ld         |    4 +-
 mips.ld         |    1 -
 mipsel.ld       |  225 -------------------------------------------------------
 ppc.ld          |    1 -
 ppc64.ld        |    8 +--
 s390.ld         |    4 +-
 sparc.ld        |    1 -
 sparc64.ld      |    1 -
 x86_64.ld       |    1 -
 17 files changed, 57 insertions(+), 399 deletions(-)
 delete mode 100644 mipsel.ld

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

end of thread, other threads:[~2009-07-23  9:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22 20:37 [Qemu-devel] [PATCH 0/3 v3] Change search path for libraries for x86_64 linker script Juan Quintela
2009-07-22 20:37 ` [Qemu-devel] [PATCH 1/3] our build system don't support mips little endian linux-user or bsd-user Juan Quintela
2009-07-22 20:37 ` [Qemu-devel] [PATCH 2/3] generate LDFLAGS for *-linux-user and *-bsd-user in a single place in configure Juan Quintela
2009-07-22 20:37 ` [Qemu-devel] [PATCH 3/3] set SEARCH_PATH for the linker script from output of ld --verbose -v Juan Quintela
2009-07-23  7:54 ` [Qemu-devel] Re: [PATCH 0/3 v3] Change search path for libraries for x86_64 linker script Paolo Bonzini
2009-07-23  8:44   ` Juan Quintela
2009-07-23  9:06     ` Paolo Bonzini
2009-07-23  9:11       ` Juan Quintela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.