diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-10-10 16:02:50 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-10-10 16:02:50 +0200 |
commit | 8c41c5e09dbfe74e71a19c57e14472ba17ccd7ef (patch) | |
tree | 698fa33c9879da38278db9eee30267580c2d394f /gdb/python/py-corefile.c | |
parent | 6b7bbb694201d7450258080d4fa9b759c27be50e (diff) | |
download | binutils-8c41c5e09dbfe74e71a19c57e14472ba17ccd7ef.zip binutils-8c41c5e09dbfe74e71a19c57e14472ba17ccd7ef.tar.gz binutils-8c41c5e09dbfe74e71a19c57e14472ba17ccd7ef.tar.bz2 |
bfd/PE: respect SEC_ALLOC when deciding whether to force IMAGE_SCN_MEM_DISCARDABLE
While in the common case sections like .reloc don't need to be accessed
by a binary (that's the job of the loader), there are rare cases where
the situation is different. Unconditionally forcing the discardable flag
is therefore unhelpful. Avoid doing so when SEC_ALLOC is set, which
would in particular be the case when .reloc isn't (solely) linker-
generated.
While adjusting the comment, drop the wrong (stale?) following sentence:
.rsrc, as per its table entry, doesn't need to be writable. And
commenting on it wanting to be readable would then need to be repeated
for all other sections as well.
Diffstat (limited to 'gdb/python/py-corefile.c')
0 files changed, 0 insertions, 0 deletions