diff options
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/exclude3.s | 16 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/exclude3a.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/exclude3b.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/exclude3c.d | 7 |
4 files changed, 42 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/exclude3.s b/ld/testsuite/ld-elf/exclude3.s new file mode 100644 index 0000000..475088f --- /dev/null +++ b/ld/testsuite/ld-elf/exclude3.s @@ -0,0 +1,16 @@ + .text + .type start,"function" + .global start +start: + .type _start,"function" + .global _start +_start: + .type __start,"function" + .global __start +__start: + .type main,"function" + .global main +main: + .long 0 + .section .foo1,"e", %progbits + .byte 0,0,0,0 diff --git a/ld/testsuite/ld-elf/exclude3a.d b/ld/testsuite/ld-elf/exclude3a.d new file mode 100644 index 0000000..7343e45 --- /dev/null +++ b/ld/testsuite/ld-elf/exclude3a.d @@ -0,0 +1,10 @@ +#source: exclude3.s +#ld: +#readelf: -S --wide +#target: x86_64-*-* i?86-*-* ia64-*-* + +#... +[ ]*\[.*\][ ]+NULL.* +[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.* +[ ]*\[.*\][ ]+.*STRTAB.* +#pass diff --git a/ld/testsuite/ld-elf/exclude3b.d b/ld/testsuite/ld-elf/exclude3b.d new file mode 100644 index 0000000..f640449 --- /dev/null +++ b/ld/testsuite/ld-elf/exclude3b.d @@ -0,0 +1,9 @@ +#source: exclude3.s +#ld: --shared +#readelf: -S --wide +#target: x86_64-*-* i?86-*-* ia64-*-* + +#... +[ ]*\[.*\][ ]+\.got.*[ ]+PROGBITS.* +[ ]*\[.*\][ ]+.*STRTAB.* +#pass diff --git a/ld/testsuite/ld-elf/exclude3c.d b/ld/testsuite/ld-elf/exclude3c.d new file mode 100644 index 0000000..57311c8 --- /dev/null +++ b/ld/testsuite/ld-elf/exclude3c.d @@ -0,0 +1,7 @@ +#source: exclude3.s +#ld: -r +#readelf: -S --wide + +#... +[ ]*\[.*\][ ]+\.foo1[ ]+PROGBITS.*[ ]+E[ ]+.* +#pass |