aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-cmd-exception.py
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-10-10 15:58:30 +0200
committerJan Beulich <jbeulich@suse.com>2025-10-10 15:58:30 +0200
commitef3816215dfa95a298d26bad0be8ccf7cb74153f (patch)
tree5a51659c1fd447bed1b35af912717740bd9cc80c /gdb/testsuite/gdb.python/py-cmd-exception.py
parent6e870bea5f3d79a63604e1b5141385e011061df7 (diff)
downloadbinutils-ef3816215dfa95a298d26bad0be8ccf7cb74153f.zip
binutils-ef3816215dfa95a298d26bad0be8ccf7cb74153f.tar.gz
binutils-ef3816215dfa95a298d26bad0be8ccf7cb74153f.tar.bz2
bfd / PE/COFF: avoid setting SEC_ALLOC when finding IMAGE_SCN_MEM_DISCARDABLE
Before teaching _bfd_XXi_swap_scnhdr_out() to respect SEC_ALLOC when considering whether to force IMAGE_SCN_MEM_DISCARDABLE for a section, make sure we won't "invert" present wrong behavior when transforming an incoming object's section attributes to an outgoing one's (objcopy or "ld -r"): Right now, IMAGE_SCN_MEM_DISCARDABLE would appear out of the blue for certain sections. We don't want the opposite, though, i.e. we want avoid silently dropping IMAGE_SCN_MEM_DISCARDABLE when it's present for an incoming object's section.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-cmd-exception.py')
0 files changed, 0 insertions, 0 deletions