diff options
author | Alan Modra <amodra@gmail.com> | 2020-07-29 17:30:15 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-07-29 17:38:01 +0930 |
commit | 5987401fcbc9933808fa0d84d1b01c93356c39a1 (patch) | |
tree | b57997323255d16f8694e1b30566fe043e913a53 /ld/ldelf.c | |
parent | 8ba83e9109a1a02f54f1c4793c8f231bb9256acd (diff) | |
download | gdb-5987401fcbc9933808fa0d84d1b01c93356c39a1.zip gdb-5987401fcbc9933808fa0d84d1b01c93356c39a1.tar.gz gdb-5987401fcbc9933808fa0d84d1b01c93356c39a1.tar.bz2 |
Don't assert at ldwrite.c:212
When excluding SHF_LINK_ORDER sections that happen to have SEC_KEEP
set, we need to set SEC_EXCLUDE here to avoid a problem later.
* ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
discarded sections.
Diffstat (limited to 'ld/ldelf.c')
-rw-r--r-- | ld/ldelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2190,6 +2190,7 @@ ldelf_before_place_orphans (void) if (discarded_section (linked_to_sec)) { isec->output_section = bfd_abs_section_ptr; + isec->flags |= SEC_EXCLUDE; break; } } |