daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ cat test.ld
  2. SECTIONS
  3. {
  4.     . = ORG;
  5.     .text : {
  6.         *(.text)
  7.     }
  8. }
  9. $ ld -o mytest mytest.o -T test.ld -M
  10.  
  11. Memory Configuration
  12.  
  13. Name             Origin             Length             Attributes
  14. *default*        0x0000000000000000 0xffffffffffffffff
  15.  
  16. Linker script and memory map
  17.  
  18. LOAD mytest.o
  19.                 0x0000000000002000                . = ORG
  20.  
  21. .text           0x0000000000001800       0x14
  22.  *(.text)
  23.  .text          0x0000000000001800       0x14 mytest.o
  24.                 0x0000000000001801                x
  25.                 0x0000000000001802                y
  26.                 0x0000000000002000                ORG
  27. OUTPUT(mytest elf64-x86-64)
  28.  
  29. .iplt           0x0000000000001818        0x0
  30.  .iplt          0x0000000000001818        0x0 mytest.o
  31.  
  32. .got            0x0000000000001818        0x0
  33.  .got           0x0000000000001818        0x0 mytest.o
  34.  
  35. .got.plt        0x0000000000001818        0x0
  36.  .got.plt       0x0000000000001818        0x0 mytest.o
  37.  
  38. .igot.plt       0x0000000000001818        0x0
  39.  .igot.plt      0x0000000000001818        0x0 mytest.o
  40.  
  41. .rela.dyn       0x0000000000001818        0x0
  42.  .rela.got      0x0000000000001818        0x0 mytest.o
  43.  .rela.iplt     0x0000000000001818        0x0 mytest.o
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top