STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) ENTRY(__entry) PHDRS { text PT_LOAD FILEHDR PHDRS FLAGS(5); data PT_LOAD FLAGS(6); tls PT_TLS; } SECTIONS { . = SEGMENT_START("text-segment", 0x400000); #ifndef SHLIB PROVIDE (__executable_start = .); #endif . = . + SIZEOF_HEADERS; /* Workaround proper alignment of the .init section */ . = ALIGN(., 16); .init : { *(.init); } :text .text : { *(.text .text.*); *(.rodata .rodata.*); } :text . = . + 0x4000; .got : { /* Tell the linker where we expect GP to point. */ __gp = .; *(.got .got.*); } :data .data : { *(.opd); *(.data .data.*); *(.sdata); } :data .tdata : { *(.tdata); *(.tdata.*); *(.gnu.linkonce.td.*); } :data :tls .tbss : { *(.tbss); *(.tbss.*); *(.gnu.linkonce.tb.*); } :data :tls .bss : { *(.sbss); *(.scommon); *(COMMON); *(.bss); } :data _end = .; /DISCARD/ : { *(*); } }