diff options
author | Jie Zhang <jie.zhang@analog.com> | 2010-03-19 14:49:46 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2010-03-19 14:49:46 +0000 |
commit | bb6be443ae1d1c907b6edfae9bfe7ddc9560630b (patch) | |
tree | 3f312b8cb14ac79f4b62d6d7b53deba498dff2d5 /ld/testsuite/ld-elf | |
parent | 0f020cefaaafef23c09c563bb2f39794117a9748 (diff) | |
download | gdb-bb6be443ae1d1c907b6edfae9bfe7ddc9560630b.zip gdb-bb6be443ae1d1c907b6edfae9bfe7ddc9560630b.tar.gz gdb-bb6be443ae1d1c907b6edfae9bfe7ddc9560630b.tar.bz2 |
PR ld/11304
* ld-elf/pr11304.d: New test.
* ld-elf/pr11304a.s: New test.
* ld-elf/pr11304b.s: New test.
* lib/ld-lib.exp (regexp_diff): Add support for #failif.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/pr11304.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr11304a.s | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr11304b.s | 4 |
3 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr11304.d b/ld/testsuite/ld-elf/pr11304.d new file mode 100644 index 0000000..d0b8408 --- /dev/null +++ b/ld/testsuite/ld-elf/pr11304.d @@ -0,0 +1,11 @@ +#source: pr11304a.s +#source: pr11304b.s +#ld: -e 0 --section-start .zzz=0x800000 +#readelf: -S --wide + +#failif +#... + \[[ 0-9]+\] \.zzz[ \t]+PROGBITS[ \t0-9a-f]+AX?.* +#... + \[[ 0-9]+\] \.zzz[ \t]+PROGBITS[ \t0-9a-f]+AX?.* +#... diff --git a/ld/testsuite/ld-elf/pr11304a.s b/ld/testsuite/ld-elf/pr11304a.s new file mode 100644 index 0000000..22fbbee --- /dev/null +++ b/ld/testsuite/ld-elf/pr11304a.s @@ -0,0 +1,4 @@ +.section .zzz,"ax",%progbits +.long 0 +.text +.long 0 diff --git a/ld/testsuite/ld-elf/pr11304b.s b/ld/testsuite/ld-elf/pr11304b.s new file mode 100644 index 0000000..22fbbee --- /dev/null +++ b/ld/testsuite/ld-elf/pr11304b.s @@ -0,0 +1,4 @@ +.section .zzz,"ax",%progbits +.long 0 +.text +.long 0 |