diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-03-13 11:52:00 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-03-14 15:59:02 -0700 |
commit | d87be451ebbf831d44ac168ca9ea2b79ab5a79b3 (patch) | |
tree | 661cf269efff62c359f22c734fa9a9ed4d810f34 /gdb/python/python-config.py | |
parent | 5cac5ee6be6a4c5668b119c0e2967a5967ba6b35 (diff) | |
download | gdb-d87be451ebbf831d44ac168ca9ea2b79ab5a79b3.zip gdb-d87be451ebbf831d44ac168ca9ea2b79ab5a79b3.tar.gz gdb-d87be451ebbf831d44ac168ca9ea2b79ab5a79b3.tar.bz2 |
elf: Clear the SEC_ALLOC bit for NOLOAD note sections
When generating an ELF output file, if a note section is marked as
NOLOAD, clear the SEC_ALLOC bit so that it won't be treated as an
SHF_ALLOC section, like a .bss style section.
PR ld/32787
* ld.texi: Update NOLOAD for ELF output files.
* ldlang.c (lang_add_section): Clear the SEC_ALLOC bit for NOLOAD
note sections for ELF output files.
* testsuite/ld-elf/pr32787.d: New file.
* testsuite/ld-elf/pr32787.t: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gdb/python/python-config.py')
0 files changed, 0 insertions, 0 deletions