diff options
author | Alexey Lapshin <alexey.lapshin@espressif.com> | 2023-02-23 10:48:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-02-23 10:48:16 +0000 |
commit | d273049e140ef324be2b018e235ae0ba8021a769 (patch) | |
tree | ccc28b159a04a0615ed33f217d4fe141fd6f4571 /ld/testsuite | |
parent | e0b74a85b879354d2aa1a6b5026d5de58c78ec45 (diff) | |
download | gdb-d273049e140ef324be2b018e235ae0ba8021a769.zip gdb-d273049e140ef324be2b018e235ae0ba8021a769.tar.gz gdb-d273049e140ef324be2b018e235ae0ba8021a769.tar.bz2 |
bfd: xtensa: fix __stop_SECTION literal drop
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld- | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-xtensa/startstop.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-xtensa/startstop.s | 16 | ||||
-rw-r--r-- | ld/testsuite/ld-xtensa/xtensa.exp | 2 |
4 files changed, 30 insertions, 0 deletions
diff --git a/ld/testsuite/ld- b/ld/testsuite/ld- new file mode 100644 index 0000000..6cea49a --- /dev/null +++ b/ld/testsuite/ld- @@ -0,0 +1,6 @@ +#as: +#ld: +#objdump: -h +#... +.*TEST_SECTION\.literal[ ]*00000008.* +#... diff --git a/ld/testsuite/ld-xtensa/startstop.d b/ld/testsuite/ld-xtensa/startstop.d new file mode 100644 index 0000000..6cea49a --- /dev/null +++ b/ld/testsuite/ld-xtensa/startstop.d @@ -0,0 +1,6 @@ +#as: +#ld: +#objdump: -h +#... +.*TEST_SECTION\.literal[ ]*00000008.* +#... diff --git a/ld/testsuite/ld-xtensa/startstop.s b/ld/testsuite/ld-xtensa/startstop.s new file mode 100644 index 0000000..b94b0ec --- /dev/null +++ b/ld/testsuite/ld-xtensa/startstop.s @@ -0,0 +1,16 @@ + .file "startstop.s" + .text + .section .rodata + .align 4 +.LC0: + .section TEST_SECTION,"aw" + .align 4 + .literal_position + .literal .LC1, __start_TEST_SECTION + .literal .LC2, __stop_TEST_SECTION + .align 4 + .global _start + .type _start, @function +_start: + l32r a2, .LC1 + l32r a3, .LC2 diff --git a/ld/testsuite/ld-xtensa/xtensa.exp b/ld/testsuite/ld-xtensa/xtensa.exp index e671cab..9af59f9 100644 --- a/ld/testsuite/ld-xtensa/xtensa.exp +++ b/ld/testsuite/ld-xtensa/xtensa.exp @@ -41,3 +41,5 @@ run_dump_test "relax-undef-weak-pie-export-dynamic" run_dump_test "relax-undef-weak-local-pie" run_dump_test "relax-undef-weak-shared" run_dump_test "relax-undef-weak-local-shared" + +run_dump_test "startstop" |