Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ echo "int foo; int main() { return 0;}" | clang -xc - -o test-lld -fuse-ld=lld
- $ readelf -Wl test-lld
- Elf file type is EXEC (Executable file)
- Entry point 0x201000
- There are 10 program headers, starting at offset 64
- Program Headers:
- Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
- PHDR 0x000040 0x0000000000200040 0x0000000000200040 0x000230 0x000230 R 0x8
- INTERP 0x000270 0x0000000000200270 0x0000000000200270 0x00001c 0x00001c R 0x1
- [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
- LOAD 0x000000 0x0000000000200000 0x0000000000200000 0x000558 0x000558 R 0x1000
- LOAD 0x001000 0x0000000000201000 0x0000000000201000 0x000185 0x000185 R E 0x1000
- LOAD 0x002000 0x0000000000202000 0x0000000000202000 0x001170 0x002005 RW 0x1000
- DYNAMIC 0x003010 0x0000000000203010 0x0000000000203010 0x000150 0x000150 RW 0x8
- GNU_RELRO 0x003000 0x0000000000203000 0x0000000000203000 0x000170 0x001000 R 0x1
- GNU_EH_FRAME 0x000440 0x0000000000200440 0x0000000000200440 0x000034 0x000034 R 0x1
- GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0
- NOTE 0x00028c 0x000000000020028c 0x000000000020028c 0x000020 0x000020 R 0x4
- Section to Segment mapping:
- Segment Sections...
- 00
- 01 .interp
- 02 .interp .note.ABI-tag .rodata .dynsym .gnu.version .gnu.version_r .gnu.hash .hash .dynstr .rela.dyn .eh_frame_hdr .eh_frame
- 03 .text .init .fini
- 04 .data .tm_clone_table .fini_array .init_array .dynamic .got .bss
- 05 .dynamic
- 06 .fini_array .init_array .dynamic .got
- 07 .eh_frame_hdr
- 08
- 09 .note.ABI-tag
Advertisement
Add Comment
Please, Sign In to add comment