gcc 2 won't build a non-position-independent executable
(This is the legacy-buildtools equivalent of #12430.)
The attached patches align gcc 2.95 and ld 2.17 with recent changes to their new-world counterparts. With the patches applied
- The default behaviour of gcc and ld is not changed.
- Users can ask gcc to build a non-position-independent executable with the
- Position-independent executables are built by default, using the
-fPIC compiler setting and by explicitly specifying
-pie to the linker.
INTERP segment is included in every executable with a link to
new → closed