* stack protector and wrapper
@ 2014-03-19 16:15 Justin Cormack
2014-03-19 21:48 ` Rich Felker
0 siblings, 1 reply; 3+ messages in thread
From: Justin Cormack @ 2014-03-19 16:15 UTC (permalink / raw)
To: musl
I just noticed that using the musl-gcc wrapper on latest Ubuntu will
not link anything unless you compile with -fno-stack-protector (you
get undefined references to __stack_chk_fail_local)
Any chance of adding this to the wrapper automatically so it doesnt
break for people with stack protector enabled distros?
Justin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: stack protector and wrapper
2014-03-19 16:15 stack protector and wrapper Justin Cormack
@ 2014-03-19 21:48 ` Rich Felker
2014-03-19 23:16 ` Justin Cormack
0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2014-03-19 21:48 UTC (permalink / raw)
To: musl
On Wed, Mar 19, 2014 at 04:15:34PM +0000, Justin Cormack wrote:
> I just noticed that using the musl-gcc wrapper on latest Ubuntu will
> not link anything unless you compile with -fno-stack-protector (you
> get undefined references to __stack_chk_fail_local)
Are you linking apps or libraries? This symbol normally is not needed
except with -shared or -pie. It would be nicer if we could provide it
rather than disabling ssp, but I don't know an easy way to do so.
Rich
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: stack protector and wrapper
2014-03-19 21:48 ` Rich Felker
@ 2014-03-19 23:16 ` Justin Cormack
0 siblings, 0 replies; 3+ messages in thread
From: Justin Cormack @ 2014-03-19 23:16 UTC (permalink / raw)
To: musl
On Wed, Mar 19, 2014 at 9:48 PM, Rich Felker <dalias@aerifal.cx> wrote:
> On Wed, Mar 19, 2014 at 04:15:34PM +0000, Justin Cormack wrote:
>> I just noticed that using the musl-gcc wrapper on latest Ubuntu will
>> not link anything unless you compile with -fno-stack-protector (you
>> get undefined references to __stack_chk_fail_local)
>
> Are you linking apps or libraries? This symbol normally is not needed
> except with -shared or -pie. It would be nicer if we could provide it
> rather than disabling ssp, but I don't know an easy way to do so.
Ah I think it was pie-related, so not really a problem, some unneeded
flags had been set.
Justin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-19 23:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 16:15 stack protector and wrapper Justin Cormack
2014-03-19 21:48 ` Rich Felker
2014-03-19 23:16 ` Justin Cormack
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).