diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-04-28 07:12:48 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-04-29 15:39:54 +0800 |
commit | 5e247da8afb8b764cb111ce1a05e8cb8862a7f98 (patch) | |
tree | feeca18d6239b42756fb9b36d13b79c8a046b7ff /gdb/testsuite/gdb.ada/packed_array.exp | |
parent | b1f0f5b31c414b3445cdcbc5bf9ca31638c7712a (diff) | |
download | gdb-master.zip gdb-master.tar.gz gdb-master.tar.bz2 |
Set sh_offset for .tbss sections to their nominal offset after aligning.
They are not loaded from disk so the value doesn't really matter, except
when the .tbss section is the first one in a PT_TLS segment. In that
case, it sets the p_offset for the PT_TLS segment, which according to
the ELF gABI ought to satisfy p_offset % p_align == p_vaddr % p_align.
bfd/
PR ld/32896
* elf.c (assign_file_positions_for_load_sections): Properly set
sh_offset for .tbss sections.
ld/
PR ld/32896
* testsuite/ld-elf/tbss4.d: New file.
* testsuite/ld-elf/tbss4.s: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gdb/testsuite/gdb.ada/packed_array.exp')
0 files changed, 0 insertions, 0 deletions