1// $ cat out-of-section-sym.ld
2// SECTIONS
3// {
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.o
10// ld -m elf_i386 -Tout-of-section-sym.ld -o out-of-section-sym.elf-i386 \
11//    out-of-section-sym.o
12
13.text
14_start:
15  ret
16