Add +link-pie?

H.J. Lu hjl.tools@gmail.com
Thu Jun 4 18:16:00 GMT 2009


On Thu, Jun 4, 2009 at 10:08 AM, Roland McGrath <roland@redhat.com> wrote:
>> The linker commands are different. The new one added -Wl,--hash-style=both
>> for nscd and "--Wl,--hash-style=both Wl,-z,combreloc -Wl,-z,relro" for tst-pie1.
>> After removing them, they generate identical binaries.
>
> Those added switches are fine.
>
> What about things like -B$(csu-objpfx), whatever effect that has?

They are replaced by

$(addprefix $(csu-objpfx),S$(start-installed-name)) \
$(+preinit)
$(+postinit)

+preinit = $(addprefix $(csu-objpfx),crti.o)
+postinit = $(addprefix $(csu-objpfx),crtn.o)

The results are the same.

-- 
H.J.



More information about the Libc-alpha mailing list