On Mon, Jan 12, 2015 at 2:48 AM, H.J. Lu <hongjiu...@intel.com> wrote: > Hi, > > This patch updates Linux/x86-64 linker test for PIE with copy reloc. > Tested with broken and working linkers on Linux/x86-64. OK to install? > > Thanks. > > > H.J. > --- > 2015-01-12 H.J. Lu <hongjiu...@intel.com> > > PR bootstrap/64561 > * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker > test for PIE with copy reloc. > * configure: Regenerated.
OK. Thanks, Uros. > diff --git a/gcc/configure b/gcc/configure > index 8670f73..1bf4358 100755 > --- a/gcc/configure > +++ b/gcc/configure > @@ -27052,6 +27052,11 @@ EOF > main: > movl %eax, a_glob(%rip) > .size main, .-main > + .globl ptr > + .section .data.rel,"aw",@progbits > + .type ptr, @object > +ptr: > + .quad a_glob > EOF > if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ > && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > > /dev/null 2>&1 \ > diff --git a/gcc/configure.ac b/gcc/configure.ac > index d010141..102dab9 100644 > --- a/gcc/configure.ac > +++ b/gcc/configure.ac > @@ -4719,6 +4719,11 @@ EOF > main: > movl %eax, a_glob(%rip) > .size main, .-main > + .globl ptr > + .section .data.rel,"aw",@progbits > + .type ptr, @object > +ptr: > + .quad a_glob > EOF > if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ > && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > > /dev/null 2>&1 \