diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-08-11 08:25:01 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-08-11 08:25:01 -0700 |
commit | cbb91fe38224d943b8156b1edc0073d0ac5ea0ef (patch) | |
tree | e47e4d84a46b0d54086b654e517b0fa18fd7b306 | |
parent | 9ef3249a00f50ee00e3973e5901cd2936abc79b3 (diff) | |
download | gdb-cbb91fe38224d943b8156b1edc0073d0ac5ea0ef.zip gdb-cbb91fe38224d943b8156b1edc0073d0ac5ea0ef.tar.gz gdb-cbb91fe38224d943b8156b1edc0073d0ac5ea0ef.tar.bz2 |
ld: Add a test for PR ld/24576
PR ld/24576
* testsuite/ld-scripts/pr24576-1.d: New.
* testsuite/ld-scripts/script.exp: Run pr24576-1.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r-- | ld/testsuite/ld-scripts/pr24576-1.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/script.exp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/pr24576-1.d b/ld/testsuite/ld-scripts/pr24576-1.d new file mode 100644 index 0000000..9f9f487 --- /dev/null +++ b/ld/testsuite/ld-scripts/pr24576-1.d @@ -0,0 +1,3 @@ +#source: default-script.s +#ld: -defsym _START=0x800 -T default-script.t -T default-script.t +#error: .*default-script.t' appears multiple times diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp index 5206563..c223135 100644 --- a/ld/testsuite/ld-scripts/script.exp +++ b/ld/testsuite/ld-scripts/script.exp @@ -233,6 +233,7 @@ run_dump_test "pr20302" run_dump_test "output-section-types" run_dump_test "ld-version" run_dump_test "ld-version-2" +run_dump_test "pr24576-1" run_dump_test "segment-start" {{name (default)}} run_dump_test "segment-start" {{name (overridden)} \ |