Only run pr12975/pr13177 for *-*-linux* and *-*-gnu* targets.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Sep 2011 16:07:16 +0000 (16:07 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Sep 2011 16:07:16 +0000 (16:07 +0000)
2011-09-16  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/pr12975.d: Only run for *-*-linux* and *-*-gnu*
targets.
* ld-elf/pr13177.d: Likewise.

* ld-elf/pr13177.s: Avoid relocations in text sections.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/pr12975.d
ld/testsuite/ld-elf/pr13177.d
ld/testsuite/ld-elf/pr13177.s

index c5349be..be38879 100644 (file)
@@ -1,3 +1,11 @@
+2011-09-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-elf/pr12975.d: Only run for *-*-linux* and *-*-gnu*
+       targets.
+       * ld-elf/pr13177.d: Likewise.
+
+       * ld-elf/pr13177.s: Avoid relocations in text sections.
+
 2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/13177
index 549e8d5..b361cc2 100644 (file)
@@ -1,5 +1,6 @@
 #ld: --gc-sections -shared -version-script pr12975.t
 #readelf: -s --wide
+#target: *-*-linux* *-*-gnu*
 #notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
 #notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
 # generic linker targets don't support --gc-sections, nor do a bunch of others
index 425a239..e56e865 100644 (file)
@@ -1,6 +1,7 @@
 #source: pr13177.s
 #ld: --gc-sections -shared
 #readelf: -s -D --wide
+#target: *-*-linux* *-*-gnu*
 #notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
 #notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
 # generic linker targets don't support --gc-sections, nor do a bunch of others
index 25232ba..d7caad3 100644 (file)
@@ -3,7 +3,7 @@
        .type   foo, %function
 foo:
        .byte 0
-       .section .text.opt_out,"ax",%progbits
-       .type   opt_out, %function
+       .section .data.opt_out,"aw",%progbits
+       .type   opt_out, %object
 opt_out:
        .dc.a bar