ENTRY(entrypoint) SECTIONS { . = 0xFFFFFFFF80000400; loaded_rom_start = .; __boot_start = .; .boot : { *(.boot) . = ALIGN(16); } .text : { *(.text .text.*) . = ALIGN(16); } .rodata : { *(.rodata .rodata.*) . = ALIGN(16); } .data : { *(.data .data.*) . = ALIGN(16); } # Everything until here needs to be loaded into RAM __binary_size = . - __boot_start; loaded_rom_end = .; .bss : { __bss_start = .; *(.bss .bss.*) . = ALIGN(16); __bss_end = .; } __rom_end = . - __boot_start + 0xB0001000; /DISCARD/ : { *(.MIPS.*) *(.comment) *(.mdebug.*) *(.pdr) *(.reginfo) /* * We may need the global offset table some day. * Our target is currently set with a static relocation-model, so this * might not be needed after all. */ *(.got) } }