On Wednesday, 13 December 2017 at 13:48:01 UTC, Sebastian Wilzbach wrote:
Yes, the OS hardening is rather annoying:/
Btw -fPIC also needs to be added to druntime (and Phobos, but building Phobos isn't essential for bootstrapping). Though, I don't think that the overhead of PIE on 32-bit systems will be an issue for the intermediate bootstrap compiler and thus it doesn't need to be as complicated as for master:

https://github.com/dlang/druntime/pull/1880
https://github.com/dlang/druntime/pull/1974
https://github.com/dlang/phobos/pull/5586
https://github.com/dlang/phobos/pull/5868
https://github.com/dlang/phobos/pull/5868
https://github.com/dlang/dmd/pull/7002
https://github.com/dlang/dmd/pull/7420
https://github.com/dlang/dmd/pull/7427
https://github.com/dlang/dmd/pull/7433

So simply add -fPIC to DFLAGS or maybe even hard-code it like it's done for macOS:

https://github.com/dlang/dmd/blob/master/src/ddmd/mars.d#L465

Hi Sebastian,

Thanks for finding all the PR's related to this issue.

I will look into as soon as my current project is finished. Can only concentrate on one thing at a time :-)

Regards,

Diederik
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to