You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
340 B
16 lines
340 B
// $ cat out-of-section-sym.ld
|
|
// SECTIONS
|
|
// {
|
|
// . = 0x10;
|
|
// .text : { _ftext = . ; *(.text) }
|
|
// . = 0x20;
|
|
// .data : { _fdata = . ; *(.data) }
|
|
// }
|
|
// as --32 out-of-section-sym.s -o out-of-section-sym.o
|
|
// ld -m elf_i386 -Tout-of-section-sym.ld -o out-of-section-sym.elf-i386 \
|
|
// out-of-section-sym.o
|
|
|
|
.text
|
|
_start:
|
|
ret
|