diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-01-29 06:07:42 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-01-29 06:07:42 -0800 |
commit | ad0f979c9df2cc3fba1f120c5e7f39e35591ed07 (patch) | |
tree | 829f486006ea0a42d290335df16fc772a37a6d46 /ld/testsuite/ld-scripts/pr24008.t | |
parent | c49829c3c331182575034911f2bb053dfbb7d8a8 (diff) | |
download | gdb-ad0f979c9df2cc3fba1f120c5e7f39e35591ed07.zip gdb-ad0f979c9df2cc3fba1f120c5e7f39e35591ed07.tar.gz gdb-ad0f979c9df2cc3fba1f120c5e7f39e35591ed07.tar.bz2 |
Add a testcase for PR ld/24008
PR ld/24008
* testsuite/ld-scripts/defined.exp: Run pr24008.
* testsuite/ld-scripts/pr24008.d: New file.
* testsuite/ld-scripts/pr24008.map: Likewise.
* testsuite/ld-scripts/pr24008.s: Likewise.
* testsuite/ld-scripts/pr24008.t: Likewise.
Diffstat (limited to 'ld/testsuite/ld-scripts/pr24008.t')
-rw-r--r-- | ld/testsuite/ld-scripts/pr24008.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/pr24008.t b/ld/testsuite/ld-scripts/pr24008.t new file mode 100644 index 0000000..902088e --- /dev/null +++ b/ld/testsuite/ld-scripts/pr24008.t @@ -0,0 +1,8 @@ +SECTIONS { + .text : { *(.text) } + .data : { *(.data) } + .bss : { *(.bss) *(COMMON) } +} +sym1 = 0x42; +sym2 = 0x43; +defined = DEFINED (sym1) ? sym1 : sym2; |