Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: add -static-pie information #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nisbet-hubbard
Copy link

It’d be useful to mention this somewhere, though I’m not sure if FAQ is the best place for it.

@rofl0r
Copy link
Collaborator

rofl0r commented Jul 3, 2023

i doubt the author you mention is the original author, as mcm has static pie patches since 8 years: https://github.com/richfelker/musl-cross-make/blob/master/patches/gcc-4.2.1/0005-staticpie.diff
this also makes it easy to answer how to get support for it: use mcm aka the official toolchain.
however, it seems surprising that the specs file shipped with musl itself for musl-gcc comes without static-pie, are you certain ?

@nisbet-hubbard
Copy link
Author

Right, that’s the patch for gcc 4, and Felker was talking about getting it into upstream at the time: https://www.openwall.com/lists/musl/2015/06/01/12.

But gcc ended up getting -static-pie only in 2017: https://gcc.gnu.org/git/?p=gcc.git&a=commit;h=b4fed89078efeb11da212091421a9f4718f625cc.

Hoyer’s Fedora patch is for the wrapper, and yes it’s not in the spec file shipped with 1.2.4.

@rofl0r
Copy link
Collaborator

rofl0r commented Jul 3, 2023

alright, i guess it's best to summon @richfelker to hear his thoughts on the matter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants