Commit 458bc9b1 by Alan Modra Committed by Alan Modra

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

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
parent 0465369f
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> 2015-11-17 Tom de Vries <tom@codesourcery.com>
* tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments. * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
...@@ -28058,7 +28058,7 @@ _start: ...@@ -28058,7 +28058,7 @@ _start:
x: .quad .TOC. x: .quad .TOC.
EOF EOF
if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 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)) }'` 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 fi
rm -f conftest conftest.o conftest.s rm -f conftest conftest.o conftest.s
......
...@@ -5257,7 +5257,7 @@ _start: ...@@ -5257,7 +5257,7 @@ _start:
x: .quad .TOC. x: .quad .TOC.
EOF EOF
if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 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)) }'` 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 fi
rm -f conftest conftest.o conftest.s rm -f conftest conftest.o conftest.s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment