Merge pull request #1812 from tustin2121/patch-linker

GF Header and Modern Builds
This commit is contained in:
GriffinR 2022-11-04 09:31:31 -04:00 committed by GitHub
commit b1af66ebe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View file

@ -27,7 +27,7 @@ SECTIONS {
*libc.a:locale.o(.data); *libc.a:locale.o(.data);
*libc.a:mallocr.o(.data); *libc.a:mallocr.o(.data);
. = 0x40000; . = 0x40000;
} }
. = 0x3000000; . = 0x3000000;

View file

@ -49,8 +49,11 @@ SECTIONS {
ALIGN(4) ALIGN(4)
{ {
src/rom_header.o(.text*); src/rom_header.o(.text*);
src/*.o(.text*); src/rom_header_gf.o(.text.*);
src/crt0.o(.text);
src/main.o(.text);
gflib/*.o(.text*); gflib/*.o(.text*);
src/*.o(.text*);
asm/*.o(.text*); asm/*.o(.text*);
} =0 } =0

View file

@ -6,6 +6,15 @@
#include "item.h" #include "item.h"
#include "pokeball.h" #include "pokeball.h"
// The purpose of this struct is for outside applications to be
// able to access parts of the ROM or its save file, like a public API.
// In vanilla, it was used by Colosseum and XD to access pokemon graphics.
//
// If this struct is rearranged in any way, it defeats the purpose of
// having it at all. Applications like PKHex or streaming HUDs may find
// these values useful, so there's some potential benefit to keeping it.
// If there's a compilation problem below, just comment out the assignment
// instead of changing this struct.
struct GFRomHeader struct GFRomHeader
{ {
u32 version; u32 version;