ELF file TLS and LOAD program sections
问题 int i; int main() { return i; } After -static compile readelf -l shows program headers from elf: Elf file type is EXEC (Executable file) Entry point 0xxxxx30 There are 6 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x08048000 0x08048000 0x79868 0x79868 R E 0x1000 > LOAD 0x079f94 0x080c2f94 0x080c2f94 0x0078c 0x02254 RW 0x1000 << NOTE 0x0000f4 0x080480f4 0x080480f4 0x00020 0x00020 R 0x4 > TLS 0x079f94 0x080c2f94