Guest User

Untitled

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