A default of -z relro (as on Fedora) defeats the deliberate mis-alignment of .got...
authorAlan Modra <amodra@gmail.com>
Tue, 17 Nov 2015 23:24:30 +0000 (09:54 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 17 Nov 2015 23:24:30 +0000 (09:54 +1030)
POWERPC64_TOC_POINTER_ALIGNMENT

A default of -z relro (as on Fedora) defeats the deliberate
mis-alignment of .got in the testcase.

* configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
to ld.
* configure: Regenerate.

From-SVN: r230509

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 2e20b4349420a78734a410d7bca760b152241dd2..f700f76893dd3bee0a8ed445ab4ca595974e88f8 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-18  Alan Modra  <amodra@gmail.com>
+
+       * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
+       to ld.
+       * configure: Regenerate.
+
 2015-11-17  Tom de Vries  <tom@codesourcery.com>
 
        * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
index d5f6dd477b56431daf3405ec4de2f196616d90dd..d465597bcd39f72080afbac97711cef9ce9885d0 100755 (executable)
@@ -28058,7 +28058,7 @@ _start:
 x:     .quad .TOC.
 EOF
       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
-         && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
+         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
         gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
       fi
       rm -f conftest conftest.o conftest.s
index 34df54924973c8fba5268be9c505e90aad5231fe..7547e3ac130ba0e3830637461b9f43f3eefaa55a 100644 (file)
@@ -5257,7 +5257,7 @@ _start:
 x:     .quad .TOC.
 EOF
       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
-         && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
+         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
         gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[[:xdigit:]]]*", a); print strtonum ("0x" substr(a[[0]], length(a[[0]])-3)) }'`
       fi
       rm -f conftest conftest.o conftest.s