From: amodra Date: Tue, 17 Nov 2015 23:24:30 +0000 (+0000) Subject: POWERPC64_TOC_POINTER_ALIGNMENT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e139797a2c588f2a3d9b0801257ec3c6eb07b75;p=thirdparty%2Fgcc.git 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230509 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e20b4349420..f700f76893dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-18 Alan Modra + + * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro + to ld. + * configure: Regenerate. + 2015-11-17 Tom de Vries * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments. diff --git a/gcc/configure b/gcc/configure index d5f6dd477b56..d465597bcd39 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 diff --git a/gcc/configure.ac b/gcc/configure.ac index 34df54924973..7547e3ac130b 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -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