r113 - trunk/text/chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Jan 19 09:25:01 PST 2005


Author: robert
Date: 2005-01-19 10:25:00 -0700 (Wed, 19 Jan 2005)
New Revision: 113

Modified:
   trunk/text/chapter05/12-gcc-native.txt
Log:
changed gcc specs to pass ld -z now,relro,combreloc to libraries as well as executables

Modified: trunk/text/chapter05/12-gcc-native.txt
===================================================================
--- trunk/text/chapter05/12-gcc-native.txt	2005-01-18 18:07:29 UTC (rev 112)
+++ trunk/text/chapter05/12-gcc-native.txt	2005-01-19 17:25:00 UTC (rev 113)
@@ -94,7 +94,7 @@
 %{!static:%{!no-pie:%{!pie: -fPIC}}}
 ' >> $(gcc --print-file specs) &&
 echo '*link_pie:
-%{pie:-pie}%{!pie:%{!static:%{!Bstatic:%{!shared:%{!Bshareable:%{!i:%{!r:%{!no-pie: -pie -z now -z relro}}}}}}}}
+%{pie:-pie}%{!no-pie:%{!static:%{!Bstatic:%{!shared:%{!Bshareable:%{!i:%{!r:%{!pie: -pie}}}}}}} -z now -z relro -z combreloc}
 ' >> $(gcc --print-file specs)
 EOF
 




More information about the hlfs-dev mailing list