From 34d7db60bf230feb30f08e64afd5710bdcb18f31 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 2 Oct 2019 18:02:48 +1000 Subject: [PATCH] Add missing boot.ld --- ld/boot.ld | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ld/boot.ld diff --git a/ld/boot.ld b/ld/boot.ld new file mode 100644 index 000000000..32763d16e --- /dev/null +++ b/ld/boot.ld @@ -0,0 +1,37 @@ +/*OUTPUT_FORMAT ("elf32-bigmips")*/ +OUTPUT_ARCH (mips) + +SECTIONS +{ + setupSegmentStart = 0x80059fe0; + setupSegmentRomStart = 0x39850; + rarezipSegmentRomStart = 0x4e850; + ziplistSegmentRomStart = 0x4fc40; + + .boot 0x00001000 : AT(0) { + build/ntsc-final/boot.o (.text); + build/ntsc-final/boot.o (.data); + } + + .library 0x00003050 : AT(SIZEOF(.boot)) { + build/ntsc-final/library.o (.text); + build/ntsc-final/library.o (.data); + } + + .setup 0x80059fe0 : AT(SIZEOF(.boot) + SIZEOF(.library)) { + build/ntsc-final/setup.o (.text); + build/ntsc-final/setup.o (.data); + } + + /DISCARD/ : { + * (.MIPS.abiflags); + * (.options); + * (.gnu.attributes); + * (.pdr); + * (.mdebug); + * (.gptab.bss); + * (.gptab.data); + * (.reginfo); + * (.setup.data); + } +}