[Lldb-commits] [PATCH] D65282: ObjectFileELF: permit thread-local sections with overlapping file addresses
Fangrui Song via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 26 02:47:34 PDT 2019
MaskRay added inline comments.
================
Comment at: lit/Modules/ELF/PT_LOAD-overlap-PT_TLS.yaml:62
+ Flags: [ SHF_ALLOC, SHF_WRITE ]
+ Address: 0x1000
+ AddressAlign: 0x4
----------------
`.data = .tbss = 0x1010` is a more realistic scenario.
Normally, a SHT_PROGBITS section may overlap with a SHT_NOBITS section, but two SHT_PROGBITS sections do not overlap (ld has an on-by-default check `ld --check-sections`). Linkers allocate file bytes for SHT_PROGBITS sections so their occupied bytes cannot be reused by other sections (without fixing addresses with a linker script).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65282/new/
https://reviews.llvm.org/D65282
More information about the lldb-commits
mailing list