diff options
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/noload-3.d | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/noload-3.s | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/noload-3.t | 7 |
3 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/noload-3.d b/ld/testsuite/ld-elf/noload-3.d new file mode 100644 index 0000000..84b27d7 --- /dev/null +++ b/ld/testsuite/ld-elf/noload-3.d @@ -0,0 +1,7 @@ +#ld: -T noload-3.t +#objdump: -s -j .foo1 + +#... +Contents of section .foo1: + [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+[ \t]+This is a test.* +#pass diff --git a/ld/testsuite/ld-elf/noload-3.s b/ld/testsuite/ld-elf/noload-3.s new file mode 100644 index 0000000..84aa2e2 --- /dev/null +++ b/ld/testsuite/ld-elf/noload-3.s @@ -0,0 +1,6 @@ + .section .foo2,"aw",%progbits + .byte 1 + .section .foo1,"w",%progbits + .string "This is a test." + .section .foo,"aw",%progbits + .space 16 diff --git a/ld/testsuite/ld-elf/noload-3.t b/ld/testsuite/ld-elf/noload-3.t new file mode 100644 index 0000000..fbb5166 --- /dev/null +++ b/ld/testsuite/ld-elf/noload-3.t @@ -0,0 +1,7 @@ +SECTIONS +{ + .foo2 : { *(.foo2) } + .foo1 : { *(.foo1) } + .foo (NOLOAD) : { *(.foo) } + /DISCARD/ : { *(*) } +} |