diff options
Diffstat (limited to 'binutils-2.22/ld')
-rw-r--r-- | binutils-2.22/ld/testsuite/ld-elf/pr13177.d | 12 | ||||
-rw-r--r-- | binutils-2.22/ld/testsuite/ld-elf/pr13177.s | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/binutils-2.22/ld/testsuite/ld-elf/pr13177.d b/binutils-2.22/ld/testsuite/ld-elf/pr13177.d new file mode 100644 index 0000000..e56e865 --- /dev/null +++ b/binutils-2.22/ld/testsuite/ld-elf/pr13177.d @@ -0,0 +1,12 @@ +#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 + +#failif +#... +.*: 0+0 +0 +NOTYPE +GLOBAL +DEFAULT +UND bar +#... diff --git a/binutils-2.22/ld/testsuite/ld-elf/pr13177.s b/binutils-2.22/ld/testsuite/ld-elf/pr13177.s new file mode 100644 index 0000000..d7caad3 --- /dev/null +++ b/binutils-2.22/ld/testsuite/ld-elf/pr13177.s @@ -0,0 +1,9 @@ + .section .text.foo,"ax",%progbits + .globl foo + .type foo, %function +foo: + .byte 0 + .section .data.opt_out,"aw",%progbits + .type opt_out, %object +opt_out: + .dc.a bar |