diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-10-03 14:11:43 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-10-03 14:11:53 -0700 |
commit | fb9bbfd7f2d39a1d4850fcf0f63ef1f077f55e4b (patch) | |
tree | dfec84c7d8359a052808f5799d30d4b8266f10ad /ld/testsuite/ld-elf/pr23658-3.d | |
parent | 34c0fc000f5202dc8f5feeb35d682913ee508230 (diff) | |
download | gdb-fb9bbfd7f2d39a1d4850fcf0f63ef1f077f55e4b.zip gdb-fb9bbfd7f2d39a1d4850fcf0f63ef1f077f55e4b.tar.gz gdb-fb9bbfd7f2d39a1d4850fcf0f63ef1f077f55e4b.tar.bz2 |
ELF: Add testcases for PR ld/23658
Add testcases to verify that all SHT_NOTE sections with the same section
alignment are placed in a single PT_NOTE segment.
PR ld/23658
* testsuite/ld-elf/pr23658-1.d: New file.
* testsuite/ld-elf/pr23658-1a.s: Likewise.
* testsuite/ld-elf/pr23658-1b.s: Likewise.
* testsuite/ld-elf/pr23658-1c.s: Likewise.
* testsuite/ld-elf/pr23658-1d.s: Likewise.
* testsuite/ld-elf/pr23658-2.rd: Likewise.
* testsuite/ld-elf/pr23658-3.d: Likewise.
* testsuite/ld-elf/pr23658-3.s: Likewise.
* testsuite/ld-elf/pr23658-3.t: Likewise.
* testsuite/ld-elf/shared.exp: Run PR ld/23658 tests.
Diffstat (limited to 'ld/testsuite/ld-elf/pr23658-3.d')
-rw-r--r-- | ld/testsuite/ld-elf/pr23658-3.d | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr23658-3.d b/ld/testsuite/ld-elf/pr23658-3.d new file mode 100644 index 0000000..2f018aa --- /dev/null +++ b/ld/testsuite/ld-elf/pr23658-3.d @@ -0,0 +1,8 @@ +#as: -mx86-used-note=yes +#ld: -T pr23658-3.t -z noseparate-code +#nm: -B +#target: i?86-*-* x86_64-*-* + +#... +0+4000 D __FOO +#... |