From b1058ce98878654d8c19b7b6741d84615795b9a1 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 3 Jun 2016 04:10:11 -0700 Subject: Update x86 linker tests for --disable-x86-relax-relocations Pass -mrelax-relocations=yes to x86 linker tests, which require relax relocations, to support --disable-x86-relax-relocations. * testsuite/ld-i386/i386.exp: Assemble gotpc1.o and pr19319b.o with -mrelax-relocations=yes. * testsuite/ld-i386/lea1a.d (as): Add -mrelax-relocations=yes. * testsuite/ld-i386/lea1b.d (as): Likewise. * testsuite/ld-i386/lea1d.d (as): Likewise. * testsuite/ld-i386/lea1e.d (as): Likewise. * testsuite/ld-i386/lea1f.d (as): Likewise. * testsuite/ld-i386/load7.d (as): Likewise. * testsuite/ld-i386/mov1b.d (as): Likewise. * testsuite/ld-i386/pr19175.d (as): Likewise. * testsuite/ld-ifunc/ifunc-13-i386.d (as): Likewise. * testsuite/ld-ifunc/ifunc-21-i386.d (as): Likewise. * testsuite/ld-ifunc/ifunc-22-i386.d (as): Likewise. * testsuite/ld-x86-64/x86-64.exp: Assemble gotpcrel1a.o, gotpcrel1b.o and gotpcrel1c.o with -mrelax-relocations=yes. --- ld/testsuite/ld-x86-64/x86-64.exp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ld/testsuite/ld-x86-64/x86-64.exp') diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 3f4d737..b3ceaa1 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -718,18 +718,16 @@ if { [isnative] && [which $CC] != 0 } { "gotpcrel1d.so" \ ] \ [list \ - "Build libgotpcrel1.a" \ - "" \ + "Build gotpcrel1a.o gotpcrel1b.o gotpcrel1c.o" \ "" \ + "-Wa,-mrelax-relocations=yes" \ { gotpcrel1a.S gotpcrel1b.c gotpcrel1c.c } \ - "" \ - "libgotpcrel1.a" \ ] \ [list \ "Build gotpcrel1" \ "-Wl,--as-needed tmpdir/gotpcrel1a.o tmpdir/gotpcrel1b.o tmpdir/gotpcrel1c.o tmpdir/gotpcrel1d.so" \ - "-Wa,-mrelax-relocations=yes" \ { dummy.s } \ + "" \ {{objdump {-dw} gotpcrel1.dd}} \ "gotpcrel1" \ ] \ -- cgit v1.1