This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Add +link-pie?
On Thu, Jun 4, 2009 at 10:25 AM, H.J. Lu<hjl.tools@gmail.com> wrote:
> 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.
>
Is my patch OK? Any comments?
Thanks.
--
H.J.