diff options
author | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2022-12-17 11:16:19 +0100 |
---|---|---|
committer | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2022-12-20 11:37:22 +0100 |
commit | 106791196f98a0f21babf4dd46a731b5d1747d3b (patch) | |
tree | ddea0ae2f01acd04488d88001e584ba4186dfb80 /ld/testsuite/ld-arm/arm-elf.exp | |
parent | 9d0991449285833b9a77cc02850a1e113e460362 (diff) | |
download | gdb-106791196f98a0f21babf4dd46a731b5d1747d3b.zip gdb-106791196f98a0f21babf4dd46a731b5d1747d3b.tar.gz gdb-106791196f98a0f21babf4dd46a731b5d1747d3b.tar.bz2 |
bfd: Discard symbol regardless of warning flag
The discard of symbols should be performed whether the warning for
the discard is enabled or not.
Without this patch, ld would segfault in bfd_section_removed_from_list,
called in the if-statement right after this block, as the argument
isec->output_section can be NULL.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
Diffstat (limited to 'ld/testsuite/ld-arm/arm-elf.exp')
-rw-r--r-- | ld/testsuite/ld-arm/arm-elf.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp index e53b9bb..ce3605d 100644 --- a/ld/testsuite/ld-arm/arm-elf.exp +++ b/ld/testsuite/ld-arm/arm-elf.exp @@ -1271,6 +1271,7 @@ run_dump_test "non-contiguous-arm3" run_dump_test "non-contiguous-arm4" run_dump_test "non-contiguous-arm5" run_dump_test "non-contiguous-arm6" +run_dump_test "non-contiguous-arm7" if { !$is_nacl && [check_shared_lib_support] } { run_dump_test "thumb-plt" |