[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 0/3 v3] Change search path for libraries for x86
[Qemu-devel] Re: [PATCH 0/3 v3] Change search path for libraries for x86_64 linker script
Thu, 23 Jul 2009 10:44:43 +0200
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
Paolo Bonzini <address@hidden> wrote:
>> 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.
> I don't understand one thing. Is this patch now using the linker
> script for all architectures? If so, it should be enough to call it
> LDFLAGS_USER and add LDFLAGS+=$(USER_LDFLAGS) where the configuration
> of linker scripts used to be done in the Makefile--or not?
It is using the linker scripts for everything that was using it before,
not a single more, neither a single less.
Just a bit of DRY, putting the commond code in a single place.
> BTW, maybe now the -Wl,-shared trick for self-virtualization can be
> replaced with -fpie (position independent executable)?
That is far away of my knowledge. That is clearly not my call.