OUTPUT_FORMAT("elf64-sparc") /* format of the output (linked) file */ ENTRY(start) /* entry point name (its body is defined in the source file) */ /* we create output section called ".boot", it will be loaded to address 0x4000 */ SECTIONS { .boot 0x4000: AT (0x4000) { *(BOOTSTRAP); /* if any input source file contains the "BOOTSTRAP" section, place it as the first in the output file */ *(.text); /* if any input source file contains the ".text" section, place it as the second in the output file */ *(.rodata); /* ... */ *(.rodata.*); *(.data); /* initialized data */ *(.sdata); *(.sdata2); *(.sbss); *(.bss); /* uninitialized static variables */ *(COMMON); } /DISCARD/ : { *(.comment); *(.note*); } }