OUTPUT_FORMAT("elf64-sparc")
OUTPUT_ARCH(sparc:v9)
ENTRY(_start)
PHDRS
{
* with the actual data. This eases the work of elf2aout. */
headers PT_NULL FILEHDR PHDRS ;
text PT_LOAD ;
}
SECTIONS
{
* then relocated here. */
. = 0x202000;
__text_begin = .;
* is not able to handle a hole between them.
*/
.text : {
* it is set using ENTRY above, but it looks nicer and makes it
* clearer we jumped at the correct address. */
*(.text.start)
*(.text .text.* .gnu.linkonce.t.*)
*(.rodata .rodata.* .gnu.linkonce.r.*)
*(.sdata2) } :text
.data : {
__ctor_list = .;
*(.ctors)
__ctor_end = .;
__data_start = .;
*(.data .gnu.linkonce.d.*)
*(.data.rel.ro.local .data.rel.ro*)
*(.got .got2)
*(.sdata .sdata.* .gnu.linkonce.s.* .fixup) } :text
__bss_start = .;
.bss : { *(.sbss .sbss.* .gnu.linkonce.sb.*)
*(.bss .bss.* .gnu.linkonce.b.*)
. = ALIGN(0x1000);
} :text
_end = . ;
/DISCARD/ : { *(.comment .note .eh_frame .dtors .debug_* .gnu.attributes) }
}