brintos

brintos / llvm-project-archived public Read only

0
0
Text · 340 B · 9a1349c Raw
16 lines · plain
1// $ cat out-of-section-sym.ld2// SECTIONS3// {4//   . = 0x10;5//   .text : { _ftext = . ; *(.text) }6//   . = 0x20;7//   .data : { _fdata = . ; *(.data) }8// }9// as --32 out-of-section-sym.s -o out-of-section-sym.o10// ld -m elf_i386 -Tout-of-section-sym.ld -o out-of-section-sym.elf-i386 \11//    out-of-section-sym.o12 13.text14_start:15  ret16