Enable ld-ifunc tests for more targets
authorAlan Modra <amodra@gmail.com>
Thu, 6 Feb 2020 00:53:43 +0000 (11:23 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 6 Feb 2020 03:29:40 +0000 (13:59 +1030)
Also fix some ix86 fails.

* testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
targets that don't support ifunc rather than ones that do.
(contains_irelative_reloc): Match R_PARISC_IPLT.
* testsuite/ld-ifunc/lib.c: Don't use .set in asm.
* testsuite/ld-ifunc/ifunc-23-x86.s,
* testsuite/ld-ifunc/ifunc-24-x86.s,
* testsuite/ld-ifunc/ifunc-25-x86.s,
* testsuite/ld-ifunc/ifunc-4-local-x86.s,
* testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
* testsuite/ld-ifunc/ifunc-10-i386.d,
* testsuite/ld-ifunc/ifunc-11-i386.d,
* testsuite/ld-ifunc/ifunc-12-i386.d,
* testsuite/ld-ifunc/ifunc-13-i386.d,
* testsuite/ld-ifunc/ifunc-14a-i386.d,
* testsuite/ld-ifunc/ifunc-14b-i386.d,
* testsuite/ld-ifunc/ifunc-14c-i386.d,
* testsuite/ld-ifunc/ifunc-14d-i386.d,
* testsuite/ld-ifunc/ifunc-14e-i386.d,
* testsuite/ld-ifunc/ifunc-14f-i386.d,
* testsuite/ld-ifunc/ifunc-15-i386.d,
* testsuite/ld-ifunc/ifunc-16-i386-now.d,
* testsuite/ld-ifunc/ifunc-16-i386.d,
* testsuite/ld-ifunc/ifunc-17a-i386.d,
* testsuite/ld-ifunc/ifunc-17b-i386.d,
* testsuite/ld-ifunc/ifunc-18a-i386.d,
* testsuite/ld-ifunc/ifunc-18b-i386.d,
* testsuite/ld-ifunc/ifunc-19a-i386.d,
* testsuite/ld-ifunc/ifunc-19b-i386.d,
* testsuite/ld-ifunc/ifunc-2-i386-now.d,
* testsuite/ld-ifunc/ifunc-2-i386.d,
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
* testsuite/ld-ifunc/ifunc-2-local-i386.d,
* testsuite/ld-ifunc/ifunc-20-i386.d,
* testsuite/ld-ifunc/ifunc-21-i386.d,
* testsuite/ld-ifunc/ifunc-22-i386.d,
* testsuite/ld-ifunc/ifunc-26.d,
* testsuite/ld-ifunc/ifunc-5a-i386.d,
* testsuite/ld-ifunc/ifunc-5a-local-i386.d,
* testsuite/ld-ifunc/ifunc-5b-i386.d,
* testsuite/ld-ifunc/ifunc-5b-local-i386.d,
* testsuite/ld-ifunc/ifunc-5r-local-i386.d,
* testsuite/ld-ifunc/ifunc-6a-i386.d,
* testsuite/ld-ifunc/ifunc-6b-i386.d,
* testsuite/ld-ifunc/ifunc-7a-i386.d,
* testsuite/ld-ifunc/ifunc-7b-i386.d,
* testsuite/ld-ifunc/ifunc-8-i386.d,
* testsuite/ld-ifunc/ifunc-9-i386.d,
* testsuite/ld-ifunc/pr17154-i386-now.d,
* testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.

48 files changed:
ld/ChangeLog
ld/testsuite/ld-ifunc/ifunc-10-i386.d
ld/testsuite/ld-ifunc/ifunc-11-i386.d
ld/testsuite/ld-ifunc/ifunc-12-i386.d
ld/testsuite/ld-ifunc/ifunc-13-i386.d
ld/testsuite/ld-ifunc/ifunc-14a-i386.d
ld/testsuite/ld-ifunc/ifunc-14b-i386.d
ld/testsuite/ld-ifunc/ifunc-14c-i386.d
ld/testsuite/ld-ifunc/ifunc-14d-i386.d
ld/testsuite/ld-ifunc/ifunc-14e-i386.d
ld/testsuite/ld-ifunc/ifunc-14f-i386.d
ld/testsuite/ld-ifunc/ifunc-15-i386.d
ld/testsuite/ld-ifunc/ifunc-16-i386-now.d
ld/testsuite/ld-ifunc/ifunc-16-i386.d
ld/testsuite/ld-ifunc/ifunc-17a-i386.d
ld/testsuite/ld-ifunc/ifunc-17b-i386.d
ld/testsuite/ld-ifunc/ifunc-18a-i386.d
ld/testsuite/ld-ifunc/ifunc-18b-i386.d
ld/testsuite/ld-ifunc/ifunc-19a-i386.d
ld/testsuite/ld-ifunc/ifunc-19b-i386.d
ld/testsuite/ld-ifunc/ifunc-2-i386-now.d
ld/testsuite/ld-ifunc/ifunc-2-i386.d
ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d
ld/testsuite/ld-ifunc/ifunc-2-local-i386.d
ld/testsuite/ld-ifunc/ifunc-20-i386.d
ld/testsuite/ld-ifunc/ifunc-21-i386.d
ld/testsuite/ld-ifunc/ifunc-22-i386.d
ld/testsuite/ld-ifunc/ifunc-23-x86.s
ld/testsuite/ld-ifunc/ifunc-24-x86.s
ld/testsuite/ld-ifunc/ifunc-25-x86.s
ld/testsuite/ld-ifunc/ifunc-26.d
ld/testsuite/ld-ifunc/ifunc-4-local-x86.s
ld/testsuite/ld-ifunc/ifunc-4-x86.s
ld/testsuite/ld-ifunc/ifunc-5a-i386.d
ld/testsuite/ld-ifunc/ifunc-5a-local-i386.d
ld/testsuite/ld-ifunc/ifunc-5b-i386.d
ld/testsuite/ld-ifunc/ifunc-5b-local-i386.d
ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d
ld/testsuite/ld-ifunc/ifunc-6a-i386.d
ld/testsuite/ld-ifunc/ifunc-6b-i386.d
ld/testsuite/ld-ifunc/ifunc-7a-i386.d
ld/testsuite/ld-ifunc/ifunc-7b-i386.d
ld/testsuite/ld-ifunc/ifunc-8-i386.d
ld/testsuite/ld-ifunc/ifunc-9-i386.d
ld/testsuite/ld-ifunc/ifunc.exp
ld/testsuite/ld-ifunc/lib.c
ld/testsuite/ld-ifunc/pr17154-i386-now.d
ld/testsuite/ld-ifunc/pr17154-i386.d

index 21f51c98b2e7c685f09b3b8f4e44277d53e645d8..29630cbab5bb5f928429f41cdb2d86a2c16feca2 100644 (file)
@@ -1,3 +1,55 @@
+2020-02-06  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
+       targets that don't support ifunc rather than ones that do.
+       (contains_irelative_reloc): Match R_PARISC_IPLT.
+       * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
+       * testsuite/ld-ifunc/ifunc-23-x86.s,
+       * testsuite/ld-ifunc/ifunc-24-x86.s,
+       * testsuite/ld-ifunc/ifunc-25-x86.s,
+       * testsuite/ld-ifunc/ifunc-4-local-x86.s,
+       * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
+       * testsuite/ld-ifunc/ifunc-10-i386.d,
+       * testsuite/ld-ifunc/ifunc-11-i386.d,
+       * testsuite/ld-ifunc/ifunc-12-i386.d,
+       * testsuite/ld-ifunc/ifunc-13-i386.d,
+       * testsuite/ld-ifunc/ifunc-14a-i386.d,
+       * testsuite/ld-ifunc/ifunc-14b-i386.d,
+       * testsuite/ld-ifunc/ifunc-14c-i386.d,
+       * testsuite/ld-ifunc/ifunc-14d-i386.d,
+       * testsuite/ld-ifunc/ifunc-14e-i386.d,
+       * testsuite/ld-ifunc/ifunc-14f-i386.d,
+       * testsuite/ld-ifunc/ifunc-15-i386.d,
+       * testsuite/ld-ifunc/ifunc-16-i386-now.d,
+       * testsuite/ld-ifunc/ifunc-16-i386.d,
+       * testsuite/ld-ifunc/ifunc-17a-i386.d,
+       * testsuite/ld-ifunc/ifunc-17b-i386.d,
+       * testsuite/ld-ifunc/ifunc-18a-i386.d,
+       * testsuite/ld-ifunc/ifunc-18b-i386.d,
+       * testsuite/ld-ifunc/ifunc-19a-i386.d,
+       * testsuite/ld-ifunc/ifunc-19b-i386.d,
+       * testsuite/ld-ifunc/ifunc-2-i386-now.d,
+       * testsuite/ld-ifunc/ifunc-2-i386.d,
+       * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
+       * testsuite/ld-ifunc/ifunc-2-local-i386.d,
+       * testsuite/ld-ifunc/ifunc-20-i386.d,
+       * testsuite/ld-ifunc/ifunc-21-i386.d,
+       * testsuite/ld-ifunc/ifunc-22-i386.d,
+       * testsuite/ld-ifunc/ifunc-26.d,
+       * testsuite/ld-ifunc/ifunc-5a-i386.d,
+       * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
+       * testsuite/ld-ifunc/ifunc-5b-i386.d,
+       * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
+       * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
+       * testsuite/ld-ifunc/ifunc-6a-i386.d,
+       * testsuite/ld-ifunc/ifunc-6b-i386.d,
+       * testsuite/ld-ifunc/ifunc-7a-i386.d,
+       * testsuite/ld-ifunc/ifunc-7b-i386.d,
+       * testsuite/ld-ifunc/ifunc-8-i386.d,
+       * testsuite/ld-ifunc/ifunc-9-i386.d,
+       * testsuite/ld-ifunc/pr17154-i386-now.d,
+       * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
+
 2020-02-06  Alan Modra  <amodra@gmail.com>
 
        * testsuite/lib/ld-lib.exp (is_generic): Delete.
index f769db13de24a0566f38fcb92613fb78a992a035..b72545acfec2c4756e7fd7b7f459d4cd75af2717 100644 (file)
@@ -2,6 +2,6 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 There are no relocations in this file.
index f769db13de24a0566f38fcb92613fb78a992a035..b72545acfec2c4756e7fd7b7f459d4cd75af2717 100644 (file)
@@ -2,6 +2,6 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 There are no relocations in this file.
index fb868aec364ff73b81b453e9b1a1f917e87ab8a8..cd41f5bfb9cd3d1212fb6f795b825bf735636ae7 100644 (file)
@@ -2,6 +2,6 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 There are no relocations in this file.
index 79a64d9910dd3005c378779b713d0f578978836b..1f6bd959f6fc505b85898ef896ead9586823c56d 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32 -mrelax-relocations=yes
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.ifunc' at offset 0x[0-9a-f]+ contains 1 entry:
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 988f5f3a9a0d5042578c70cf1fdc968fdcbbdf62..93a583462be9e53e7efabd4bb3702fbf02fe7720 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -d --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #failif
 #...
index 42b7ce6d911e0f233140cf5458709f77133f2f1e..213dc8096b1e2e4291660dd0851aa1960091f501 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -d --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #failif
 #...
index 137b3e9b02660494527f2d37c38099aefcaf57bf..29960ed06ccd1ff5c4a7740190d7742bdcca5388 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #failif
 #...
index 094defc93307727a20151b7927a18bbf9fb541fe..a355d36d6e132b83355fc5dd6c7db5054a2ad461 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #failif
 #...
index eec7ab655dd22432e13f3d628923f2801ba01a41..c47ff3e5de47ca01bd42308dd254aa9751fb88ac 100644 (file)
@@ -5,7 +5,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #failif
 #...
index 826ddd34024c70be77ddcc98cf0dec97be6e5903..9f92a715acdb712e385fd3ee68b5cec93b317e32 100644 (file)
@@ -5,7 +5,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #failif
 #...
index 0c062fd3c659e7adaa806f5fa5917b275b782387..bac4afe4ad2cfdbf1506256458d5990f79bc5d10 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.got' at offset 0x[0-9a-f]+ contains 1 entry:
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index ee0e5fdea5e9abac816176760b8209ff689075e0..879976b5a89eee0caed374105a9798975b4a057c 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index bc80fa1ec2d53a64f8f07f6211bcefecdf2d7009..8e0c06908ca86ea7c2212d5d54f346565f0c292a 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 0c7ff488f246a387e1a43c3db8605a3b6597cfc9..1ff40c26a5921cd9a6f526cd56223df584389ff1 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -s --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #...
  +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] foo
index 5704cf143fb5da7ab5d63bc6e7351293292da751..1d54a90c0e008aad3e8be28a82cd2f169739a11a 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -s --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #...
  +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] foo
index 348b9f92b5db60dc149a69db92b3cf105ad3ab99..e79d136b0e2d32a95b83c749852a81fabd6be8a3 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 59dfad4193e56e1f248360c9c5c791b076db1cd1..a7d295bf061b659a748ba61bc4b2f62e5ba13a29 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index a2c131e5971a9ae756dc85b6e0910843228be374..e2d19178c733c777bcf7c9cedfe741af70f1c3ec 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 2ca56a2865adf341ece1f18719e64ad395b44eb6..29f590052c684b7facf29fcc06db833cc4365ad7 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 028093b1c318f606844989d093031162a80ae267..533cd78b3ac6e83651c8602f8661fa45259810da 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 .*: +file format .*
 
index fb1ad4eeb9b712b5a7e68b5d105a42e1749f4d8b..3cf1ef0e12c7bd5365b10f831024813e9c49165f 100644 (file)
@@ -2,7 +2,7 @@
 #as: --32
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #...
 [ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-f]+<\*ABS\*@plt>
index 4899171b682e9a614639bd137e746a4498839e6d..b11324c87f0c77920c04a8924c8461ed96181b2b 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 .*: +file format .*
 
index fb1ad4eeb9b712b5a7e68b5d105a42e1749f4d8b..3cf1ef0e12c7bd5365b10f831024813e9c49165f 100644 (file)
@@ -2,7 +2,7 @@
 #as: --32
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #...
 [ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-f]+<\*ABS\*@plt>
index c501b04cbe008e15f97b5f059dd4256acee7b9e8..5c138564c46fced472da8c91ed236208774a6921 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.ifunc' at offset 0x[0-9a-f]+ contains 1 entry:
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 9e8759af6730c4b6539e90f2e1ce8911e819585d..12ab848fe6a50c7a9d5da40ee05052174114e905 100644 (file)
@@ -2,7 +2,7 @@
 #as: --32 -mrelax-relocations=yes
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 .*: +file format .*
 
index 9e8759af6730c4b6539e90f2e1ce8911e819585d..12ab848fe6a50c7a9d5da40ee05052174114e905 100644 (file)
@@ -2,7 +2,7 @@
 #as: --32 -mrelax-relocations=yes
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 .*: +file format .*
 
index 69c227909bb3ebb243e72d546ffee42b2ed112b1..00b60c5a5afc8003fb6c406187b9588b7ee05074 100644 (file)
@@ -6,5 +6,7 @@ _start:
        ret
        .globl __start
 __start:
+       .global _main
+_main:
        .data
        .dc.a foo
index 967cdf6fc9a5052f3816f2c00197fd5acf4dcdc8..723db4b13710fa0b2375def545d219d0b8de0687 100644 (file)
@@ -7,5 +7,7 @@ _start:
        call    foo@PLT
        .globl __start
 __start:
+       .global _main
+_main:
        .data
        .dc.a foo
index 0549cbfa9407539a5bd998f14eb6385c6063d778..452592c6270c494652e422264e6a3c7e4d5d2b8a 100644 (file)
@@ -8,5 +8,7 @@ _start:
        call    foo@PLT
        .globl __start
 __start:
+       .global _main
+_main:
        .data
        .dc.a foo
index 3b1e9f167ac188eceb26b834c50b1bc8fe69a33e..05e380a87af1a5e78fbb508ae2c9d1cb2ab505af 100644 (file)
@@ -1,7 +1,8 @@
 #ld: -shared
 #readelf: -h
+#xfail: alpha-*-*
 
 ELF Header:
 #...
-  OS/ABI:                            UNIX - GNU
+ +OS/ABI: +UNIX - (GNU|FreeBSD)
 #pass
index 4f72d7fb057b4047494a2f272ee7423b1b9270c4..819610ea58a6983912b47bab1359081848e8b7a3 100644 (file)
@@ -13,6 +13,8 @@ _start:
        .type __start,"function"
        .global __start
 __start:
-       .type __start,"function"
+       .type _main,"function"
+       .global _main
+_main:
        call    foo
        movl    $foo,%eax
index 1c7e07e70cfc69b13acb3eee686f43f716e7f602..7d02f5caeb2027ad559912084e27c0e65ac099b5 100644 (file)
@@ -14,6 +14,8 @@ _start:
        .type __start,"function"
        .global __start
 __start:
-       .type __start,"function"
+       .type _main,"function"
+       .global _main
+_main:
        call    foo
        movl    $foo,%eax
index 51e4632e46feb959d823b00d970b22604fa22102..3fd52a6c6d668a9a50dc45b905107d66ba161233 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 3df5f6b11bedd929096e9b6e3c1b56b2b3f88e93..979d5b9803018dcbee8c036f53518f6e344630db 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index f47a1957d2fc92b0e2da0528351960c647e827e1..3d9aa277c114024cb6e5273be5e40ba5752710fa 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.got' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index be8db75c8308dcdb929cecd2f166d3ac6358b83a..0af572c9fe8c507942988251c870c9e4c8648574 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 6e7a8b3c72ea6a5cb48b720dae47fb7bc6f57f7e..3eccf932bf0368f86d4304bf738989ef6a8513c8 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.text' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index c4fa10e2799210088b2776b124e0aaf848a16123..3dc853adcf4a7084aa7cd919ba7d580ed030266e 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 6ed595b3b079bf6e2a334b65c914e00e2eefc043..5809f089058548699fa3fb41967fffad3199236d 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.got' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index fda1fb9aa7686aa35465b83e129aeaa3a18a6f67..dfe3028d4ee58ee613b0d62375e53082c307f909 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 66f5a629abca8f5277dd19d0800ba6cce564a0d3..427fa2b6c3aadbf1cd978cacf884793c891e442a 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 3730a4fd9c27aad9bf58fee9fd1b5a504f548202..0930c2cb039ca765fbaf3af129434851b407984b 100644 (file)
@@ -4,7 +4,7 @@
 #as: --32
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index adf84715d0d7ac194975ed06fb34ded62c65603d..dba1ac1f16adb3444adc7d0c2ba0e1f03cffc72b 100644 (file)
@@ -3,7 +3,7 @@
 #ld: -m elf_i386 --export-dynamic
 #readelf: -r --wide
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 Relocation section '.rel.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 4e9e83bbc38961cc1e7bedf4e4c8500af99cc28e..384ded0507e2eb5357501113b02f703ed95876ac 100644 (file)
 # Written by Nick Clifton <nickc@redhat.com>
 
 
-# IFUNC support has only been implemented for the ix86, x86_64, powerpc,
-# aarch64, sparc, and S/390 so far.
-if {!(([istarget "i?86-*-*"]
-       || [istarget "x86_64-*-*"]
-       || [istarget "powerpc*-*-*"]
-       || [istarget "aarch64*-*-*"]
-       || [istarget "sparc*-*-*"]
-       || [istarget "s390*-*-*"])
-      && ([istarget "*-*-elf*"]
-         || [istarget "*-*-nacl*"]
-         || [istarget "*-*-linux*"]
-         || [istarget "*-*-gnu*"])) } {
+if { ![is_elf_format] || ![supports_gnu_osabi]
+     || [istarget arc*-*-*]
+     || [istarget am33*-*-*]
+     || [istarget bfin-*-*]
+     || [istarget cris*-*-*]
+     || [istarget frv-*-*]
+     || [istarget lm32-*-*]
+     || [istarget m32r-*-*]
+     || [istarget m68k-*-*]
+     || [istarget microblaze-*-*]
+     || [istarget mips*-*-*]
+     || [istarget mn10300-*-*]
+     || [istarget nds32*-*-*]
+     || [istarget nios2-*-*]
+     || [istarget or1k-*-*]
+     || [istarget riscv*-*-*]
+     || [istarget score*-*-*]
+     || [istarget sh*-*-*]
+     || [istarget tic6x-*-*]
+     || [istarget tile*-*-*]
+     || [istarget vax-*-*] } {
     verbose "IFUNC tests not run - target does not support IFUNC"
     return
 }
@@ -139,7 +148,7 @@ proc contains_irelative_reloc { binary_file } {
     #    080496f4  0000002a R_386_IRELATIVE
 
 
-    if { ![regexp "\[0-9a-f\]+\[ \]+\[0-9a-f\]+\[ \]+R_\[_0-9A-Z\]+_IREL(|ATIVE)\[ \]*\[0-9a-f\]*\n" [file_contents readelf.out]] } {
+    if { ![regexp "\[0-9a-f\]+\[ \]+\[0-9a-f\]+\[ \]+R_(\[_0-9A-Z\]+_IREL(|ATIVE)|PARISC_IPLT)\[ \]*\[0-9a-f\]*\n" [file_contents readelf.out]] } {
        return 0
     }
 
index 393dabf29698b4b3a9b79ec5ada89538c9d575ea..4b24c23f9fafcad3eb19286f09bc36fbde31104b 100644 (file)
@@ -20,7 +20,7 @@ extern __typeof (library_func2) library_func2 __asm__ ("__GI_library_func2");
 
 __asm__(".global __GI_library_func2");
 __asm__(".hidden __GI_library_func2");
-__asm__(".set __GI_library_func2, library_func2");
+__asm__("__GI_library_func2 = library_func2");
 
 int
 library_func (int x)
index 7f8c6bb84e36cea196ce876539f2bca1cd993eb1..74d653c4e2dc277ab193f7979c811dfba591d12e 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 .*: +file format .*
 
index 6d7c9a63453976456be20ce9fad8a12304846dff..6fc8fbeb66b2d15a49e34fb3e1b32963a5a09a67 100644 (file)
@@ -3,7 +3,7 @@
 #as: --32
 #objdump: -dw
 #target: x86_64-*-* i?86-*-*
-#notarget: x86_64-*-nacl* i?86-*-nacl*
+#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
 
 #...
 0+180 <.*>: