[ipxe-devel] [ipxe] Fix no-PIE workaround for i386 builds (#49)

Christian Hesse notifications at github.com
Wed Mar 16 10:28:28 UTC 2016


> Thanks. Your patch seems to completely remove the "-nopie" option for all versions of gcc. I'm pretty sure this is going to break the versions that required the workaround in the first place.

I did not find a version of `gcc` that requires (or even understands) `-nopie`.
Do you have any information what systems do require this?

> Does your version of gcc actually require the workaround? It's not required on mine (also 4.9.2).

By default `gcc` does not enable PIE. This changes when you enable hardening toolchains and/or enable some options in your environment, though.

But that is what my change is about: It uses the preprocessor to check whether or not `gcc` generates PIE code. The workaround is added in first case only.

Thinking about some more changes...

---
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/49#issuecomment-197251481
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20160316/57be1f92/attachment.htm>


More information about the ipxe-devel mailing list