Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat test.ld
- SECTIONS
- {
- . = ORG;
- .text : {
- *(.text)
- }
- }
- $ ld -o mytest mytest.o -T test.ld -M
- Memory Configuration
- Name Origin Length Attributes
- *default* 0x0000000000000000 0xffffffffffffffff
- Linker script and memory map
- LOAD mytest.o
- 0x0000000000002000 . = ORG
- .text 0x0000000000001800 0x14
- *(.text)
- .text 0x0000000000001800 0x14 mytest.o
- 0x0000000000001801 x
- 0x0000000000001802 y
- 0x0000000000002000 ORG
- OUTPUT(mytest elf64-x86-64)
- .iplt 0x0000000000001818 0x0
- .iplt 0x0000000000001818 0x0 mytest.o
- .got 0x0000000000001818 0x0
- .got 0x0000000000001818 0x0 mytest.o
- .got.plt 0x0000000000001818 0x0
- .got.plt 0x0000000000001818 0x0 mytest.o
- .igot.plt 0x0000000000001818 0x0
- .igot.plt 0x0000000000001818 0x0 mytest.o
- .rela.dyn 0x0000000000001818 0x0
- .rela.got 0x0000000000001818 0x0 mytest.o
- .rela.iplt 0x0000000000001818 0x0 mytest.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement