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 /gas/messages.c | |
parent | 9d0991449285833b9a77cc02850a1e113e460362 (diff) | |
download | binutils-106791196f98a0f21babf4dd46a731b5d1747d3b.zip binutils-106791196f98a0f21babf4dd46a731b5d1747d3b.tar.gz binutils-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 'gas/messages.c')
0 files changed, 0 insertions, 0 deletions