Bug 203371

Summary: [patch] libc.so patch for worlds built WITHOUT_SSP - should not add libssp_nonshared.a
Product: Base System Reporter: Kenneth Salerno <kennethsalerno>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: jlh, pfg
Priority: --- Keywords: patch
Version: 11.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to check for WITHOUT_SSP
none
fix for WITHOUT_SSP none

Description Kenneth Salerno 2015-09-26 12:00:28 UTC
Created attachment 161421 [details]
patch to check for WITHOUT_SSP

Should check first if WITHOUT_SSP was chosen before including /usr/lib/libssp_nonshared.a in libc.so which will not exist on those systems, breaking cc.
Comment 1 Kenneth Salerno 2016-11-03 12:56:16 UTC
Created attachment 176591 [details]
fix for WITHOUT_SSP
Comment 2 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-10-08 04:28:20 UTC
It looks reasonable to me (except for the $FreeBSD$ string) but I'll leave it for jlh@ since he knows this better.
Comment 3 Jeremie Le Hen freebsd_committer freebsd_triage 2017-11-01 20:33:58 UTC
Sorry for the long delay...

It seems it was fixed in r307146:
https://svnweb.freebsd.org/base/head/lib/libc/Makefile?revision=307146&view=markup
Comment 4 Kenneth Salerno 2017-11-14 12:46:00 UTC
(In reply to Jeremie Le Hen from comment #3)
I find it very interesting how Ruslan Bukin came up with a patch in Oct 2016 identical to my patch from Sep 2015. The only difference is he used _nossp in his ldscript name while I used -nossp.