Pass -no-pie to GCC
Certain distributions (e.g. Debian and Ubuntu) have enabled PIE be default in their GCC packaging. This breaks our abuse of GCC as a linker which requires that we pass -Wl,-r, which is incompatible with PIE (since the former implies that we are generating a relocatable object file and the latter an executable). This is a second attempt at D2691. This attempt constrasts with D2691 in that it preserves the "does gcc support -no-pie" flag in settings, allowing this to be reconfigured by `configure` during installation of a binary distribution. Thanks for @rwbarton for drawing attention to this issue. Test Plan: Validate Reviewers: austin, hvr, erikd Reviewed By: erikd Subscribers: thomie, rwbarton, erikd Differential Revision: https://phabricator.haskell.org/D2693 GHC Trac Issues: #12759
Showing
- aclocal.m4 21 additions, 0 deletionsaclocal.m4
- compiler/main/DriverPipeline.hs 10 additions, 0 deletionscompiler/main/DriverPipeline.hs
- compiler/main/DynFlags.hs 1 addition, 0 deletionscompiler/main/DynFlags.hs
- compiler/main/SysTools.hs 15 additions, 0 deletionscompiler/main/SysTools.hs
- configure.ac 3 additions, 0 deletionsconfigure.ac
- distrib/configure.ac.in 1 addition, 0 deletionsdistrib/configure.ac.in
- settings.in 1 addition, 0 deletionssettings.in
Loading
Please register or sign in to comment