Update x86 linker tests for --disable-x86-relax-relocations
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 3 Jun 2016 11:10:11 +0000 (04:10 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 3 Jun 2016 11:10:11 +0000 (04:10 -0700)
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.

14 files changed:
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/lea1a.d
ld/testsuite/ld-i386/lea1b.d
ld/testsuite/ld-i386/lea1d.d
ld/testsuite/ld-i386/lea1e.d
ld/testsuite/ld-i386/lea1f.d
ld/testsuite/ld-i386/load7.d
ld/testsuite/ld-i386/mov1b.d
ld/testsuite/ld-i386/pr19175.d
ld/testsuite/ld-ifunc/ifunc-13-i386.d
ld/testsuite/ld-ifunc/ifunc-21-i386.d
ld/testsuite/ld-ifunc/ifunc-22-i386.d
ld/testsuite/ld-x86-64/x86-64.exp

index 463f1a1fc930560e61d90c1aceb9c32b75d0c1e1..60e73ac7a34e5b74d57faf0f43a23f3bcbc3fee7 100644 (file)
@@ -1,3 +1,21 @@
+2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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.
+
 2016-06-02  Vineet Gupta  <Vineet.Gupta1@synopsys.com>
 
        * configure.tgt: Replace -uclibc with *.
index 8e662806b8ce1e3aec2abf873f3131d4fca5d97e..d30f9fb53b4528cbaf7d2f0aeab6fa805e3e6aa3 100644 (file)
@@ -664,7 +664,7 @@ if { [isnative]
        [list \
            "Build gotpc1.o" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { got1a.S got1b.c got1c.c } \
            "" \
            "gotpc1.o" \
@@ -672,7 +672,7 @@ if { [isnative]
        [list \
            "Build gotpc1" \
            "-Wl,--as-needed tmpdir/gotpc1.o tmpdir/got1d.so" \
-           "-Wa,-mrelax-relocations=yes" \
+           "" \
            { dummy.s } \
            {{objdump {-dw} got1.dd}} \
            "got1" \
@@ -688,7 +688,7 @@ if { [isnative]
        [list \
            "Build pr19319" \
            "-pie -nostdlib -nostartfiles tmpdir/pr19319.so" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { pr19319b.S } \
            {{objdump {-dw} pr19319.dd}} \
            "pr19319" \
index d8825227008c84a1107ca6b3e10bb5975023a656..b84ad7fb812da49a26f8464a62122dee87208b22 100644 (file)
@@ -1,5 +1,5 @@
 #source: lea1.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -Bsymbolic -shared -melf_i386
 #objdump: -dw
 
index b3f6507d1773338c415031ee1dc1d0df4deee0e4..b2bc6cb856fb59d930c50a892ecfac5da463a942 100644 (file)
@@ -1,5 +1,5 @@
 #source: lea1.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -pie -melf_i386
 #objdump: -dw
 
index 7deab262d6269cfadb33a70934c01ecc8e09eaeb..0b583d2cd5aaf0f76ab5e292aea7cc616bd7700d 100644 (file)
@@ -1,5 +1,5 @@
 #source: lea1.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -Bsymbolic -shared -melf_i386
 #readelf: -Sw
 
index ae669581c37dee13b180ebf17ff430e172634e27..253943d5c4be6d7d47a0690b2842ffd2fec6ec43 100644 (file)
@@ -1,5 +1,5 @@
 #source: lea1.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -pie -melf_i386
 #readelf: -Sw
 
index 3c16996c6410113482c39ed6559bef3e96c7c7af..1b773189e03c2031ff08ef8c8deb7ab6052141c9 100644 (file)
@@ -1,5 +1,5 @@
 #source: lea1.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -melf_i386
 #readelf: -Sw
 
index 898dc3900d190d9e66ada1e84078daada7e53656..47eb809f2b89bfd6c20d0f671e821d17ad84d1e8 100644 (file)
@@ -1,4 +1,4 @@
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -shared -melf_i386 --version-script load7.map
 #objdump: -dw
 
index 1b7cc2fa727daf6b900e40d03a19dbc81a421a5c..aaeeb6384949113fe0c53b234af09ec301f9bd63 100644 (file)
@@ -1,5 +1,5 @@
 #source: mov1.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -pie -melf_i386 --no-dynamic-linker
 #objdump: -dw
 
index 3f2edb1230625e18c5519995485bed08c01a7290..aaf929f2218b54bcd4f9c42ceb852af496d650ca 100644 (file)
@@ -1,5 +1,5 @@
 #source: pr19175.s
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #ld: -Bsymbolic -shared -melf_i386 -T pr19175.t
 #objdump: -dw
 
index 746945b43c88c0702c59be438ce6743d5c11d583..677fa9284c3fb2e35a8326317fd8e36a948c8ca7 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-13a-i386.s
 #source: ifunc-13b-i386.s
 #ld: -shared -m elf_i386 -z nocombreloc
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
 
index 36fcfc093e11b3ec5a935b979854ad3941347750..e609dbe74afdf0a078234d0119d90be0c1d7ebb4 100644 (file)
@@ -1,5 +1,5 @@
 #ld: -m elf_i386
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
 
index 36fcfc093e11b3ec5a935b979854ad3941347750..e609dbe74afdf0a078234d0119d90be0c1d7ebb4 100644 (file)
@@ -1,5 +1,5 @@
 #ld: -m elf_i386
-#as: --32
+#as: --32 -mrelax-relocations=yes
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
 
index 3f4d737bee9199aa731dd789852022c05db7bcee..b3ceaa1c6215cab76187198b1c7a3eb022204145 100644 (file)
@@ -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" \
        ] \
This page took 0.031806 seconds and 4 git commands to generate.