[PATCH] Add -lssp_nonshared to GCC's LIB_SPEC unconditionally

Jeremie Le Hen jeremie at le-hen.org
Mon Sep 27 09:47:01 UTC 2010


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?

Regards,
-- 
Jeremie Le Hen

Humans are born free and equal.  But some are more equal than others.
					    Coluche
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld_ssp_nonshared.diff
Type: text/x-diff
Size: 2499 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100927/62e1ce24/ld_ssp_nonshared.bin


More information about the freebsd-hackers mailing list