mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-19 17:12:10 +00:00
(WiiU) changed linker script to now properly generate a small rpx elf file instead of a 243mb one every time
This commit is contained in:
parent
9564c14874
commit
53042b58b0
@ -15,6 +15,7 @@ PHDRS {
|
||||
hdr_data PT_LOAD FLAGS(0x02 | 0x04);
|
||||
hdr_srodata PT_LOAD FLAGS(0x04);
|
||||
hdr_sdata PT_LOAD FLAGS(0x02 | 0x04);
|
||||
hdr_sysdata PT_LOAD FLAGS(0x02 | 0x04);
|
||||
}
|
||||
|
||||
SECTIONS {
|
||||
@ -175,7 +176,7 @@ SECTIONS {
|
||||
/* Contains the name of RPLs, referenced by .lib.rplLibs */
|
||||
.rodata.rplNames ALIGN(32) : {
|
||||
*(.rodata.rplNames)
|
||||
} : hdr_data
|
||||
} : hdr_sysdata
|
||||
|
||||
/*
|
||||
* List of RPL libraries to import, in format:
|
||||
@ -185,7 +186,7 @@ SECTIONS {
|
||||
.lib.rplLibs ALIGN(32) : {
|
||||
*(.lib.rplLibs)
|
||||
KEEP (*(.lib.rplLibs*))
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/*
|
||||
* List of functions an RPL exports, in format:
|
||||
@ -193,51 +194,51 @@ SECTIONS {
|
||||
*/
|
||||
.data.rplFuncStubs ALIGN(32) : {
|
||||
*(.data.rplFuncStubs)
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/* Required compiler trash */
|
||||
.fixup ALIGN(32) : { *(.fixup*) }
|
||||
.got ALIGN(32) : { *(.got*) }
|
||||
.gcc_except_table ALIGN(32) : { *(.gcc_except_table*) }
|
||||
.hash ALIGN(32) : { *(.hash) }
|
||||
.dynsym ALIGN(32) : { *(.dynsym) }
|
||||
.fixup ALIGN(32) : { *(.fixup*) } : hdr_sysdata
|
||||
.got ALIGN(32) : { *(.got*) } : hdr_sysdata
|
||||
.gcc_except_table ALIGN(32) : { *(.gcc_except_table*) } : hdr_sysdata
|
||||
.hash ALIGN(32) : { *(.hash) } : hdr_sysdata
|
||||
.dynsym ALIGN(32) : { *(.dynsym) } : hdr_sysdata
|
||||
|
||||
/* Put all dynamic loader relocations into one section */
|
||||
.rela.dyn ALIGN(32) : {
|
||||
*(.rela.dyn)
|
||||
*(.rela.data.rplFuncStubs)
|
||||
*(.rela.lib.rplLibs)
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/* Relocations for .rodata sections */
|
||||
.rela.rodata ALIGN(32) :
|
||||
{
|
||||
*(.rela.rodata .rela.rodata.*)
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/* Relocations for .text sections */
|
||||
.rela.text ALIGN(32) :
|
||||
{
|
||||
*(.rela.text .rela.text.*)
|
||||
*(.rela.rplTramp.text)
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/* Relocations for .data sections */
|
||||
.rela.data ALIGN(32) :
|
||||
{
|
||||
*(.rela.data .rela.data.*)
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/* Relocations for .bss sections */
|
||||
.rela.bss ALIGN(32) :
|
||||
{
|
||||
*(.rela.bss .rela.bss.*)
|
||||
}
|
||||
} : hdr_sysdata
|
||||
|
||||
/* Symbol tables */
|
||||
.shstrtab ALIGN(32) : { *(.shstrtab) }
|
||||
.symtab ALIGN(32) : { *(.symtab) }
|
||||
.strtab ALIGN(32) : { *(.strtab) }
|
||||
.shstrtab ALIGN(32) : { *(.shstrtab) } : hdr_sysdata
|
||||
.symtab ALIGN(32) : { *(.symtab) } : hdr_sysdata
|
||||
.strtab ALIGN(32) : { *(.strtab) } : hdr_sysdata
|
||||
|
||||
/DISCARD/ : {
|
||||
*(.interp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user