[PATCH] Add -lssp_nonshared to GCC's LIB_SPEC unconditionally
Kostik Belousov
kostikbel at gmail.com
Mon Sep 27 15:45:23 UTC 2010
On Mon, Sep 27, 2010 at 11:46:51AM +0200, Jeremie Le Hen wrote:
> Hi Kostik,
>
> On Mon, Sep 20, 2010 at 10:27:08PM +0300, Kostik Belousov wrote:
> >
> > You make the script only useful for the stack protection. If build process
> > does not use libc.so script, but installed system does, you
> > - require to maintain two places where (not much) hypothetical libc
> > changes should go;
> > - make it very puzzling to debug the issues with the build of the usermode.
> >
> > Please, do this in the consistent manner, so that the script can be adopted
> > for other uses.
>
> I've updated the patch. I think it will fulfill your requirements. Now
> the ld script is generated on the fly during the install step.
>
> The patch probably needs some polishing such as removing debugging
> leftovers. Can you tell me if it looks of for you now?
Hardcoding /usr/lib as the path to the library in the script looks problematic.
For the buidlworld, you are linking resulting binaries with the host library,
instead of the buildworld-produced one. For lib32, it makes non-working
combination of 32/64 bit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100927/bd6ea056/attachment.pgp
More information about the freebsd-hackers
mailing list