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
This commit is contained in:
parent
0465369f41
commit
458bc9b1d0
3 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
2
gcc/configure
vendored
2
gcc/configure
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue