Merge pull request #4062 from FIX94/master

(WiiU) changed linker script to now properly generate a small rpx elf…
This commit is contained in:
aliaspider 2016-11-24 09:55:58 +01:00 committed by GitHub
commit 82ced82b54
1 changed files with 17 additions and 16 deletions

View File

@ -15,6 +15,7 @@ PHDRS {
hdr_data PT_LOAD FLAGS(0x02 | 0x04); hdr_data PT_LOAD FLAGS(0x02 | 0x04);
hdr_srodata PT_LOAD FLAGS(0x04); hdr_srodata PT_LOAD FLAGS(0x04);
hdr_sdata PT_LOAD FLAGS(0x02 | 0x04); hdr_sdata PT_LOAD FLAGS(0x02 | 0x04);
hdr_sysdata PT_LOAD FLAGS(0x02 | 0x04);
} }
SECTIONS { SECTIONS {
@ -175,7 +176,7 @@ SECTIONS {
/* Contains the name of RPLs, referenced by .lib.rplLibs */ /* Contains the name of RPLs, referenced by .lib.rplLibs */
.rodata.rplNames ALIGN(32) : { .rodata.rplNames ALIGN(32) : {
*(.rodata.rplNames) *(.rodata.rplNames)
} : hdr_data } : hdr_sysdata
/* /*
* List of RPL libraries to import, in format: * List of RPL libraries to import, in format:
@ -185,7 +186,7 @@ SECTIONS {
.lib.rplLibs ALIGN(32) : { .lib.rplLibs ALIGN(32) : {
*(.lib.rplLibs) *(.lib.rplLibs)
KEEP (*(.lib.rplLibs*)) KEEP (*(.lib.rplLibs*))
} } : hdr_sysdata
/* /*
* List of functions an RPL exports, in format: * List of functions an RPL exports, in format:
@ -193,51 +194,51 @@ SECTIONS {
*/ */
.data.rplFuncStubs ALIGN(32) : { .data.rplFuncStubs ALIGN(32) : {
*(.data.rplFuncStubs) *(.data.rplFuncStubs)
} } : hdr_sysdata
/* Required compiler trash */ /* Required compiler trash */
.fixup ALIGN(32) : { *(.fixup*) } .fixup ALIGN(32) : { *(.fixup*) } : hdr_sysdata
.got ALIGN(32) : { *(.got*) } .got ALIGN(32) : { *(.got*) } : hdr_sysdata
.gcc_except_table ALIGN(32) : { *(.gcc_except_table*) } .gcc_except_table ALIGN(32) : { *(.gcc_except_table*) } : hdr_sysdata
.hash ALIGN(32) : { *(.hash) } .hash ALIGN(32) : { *(.hash) } : hdr_sysdata
.dynsym ALIGN(32) : { *(.dynsym) } .dynsym ALIGN(32) : { *(.dynsym) } : hdr_sysdata
/* Put all dynamic loader relocations into one section */ /* Put all dynamic loader relocations into one section */
.rela.dyn ALIGN(32) : { .rela.dyn ALIGN(32) : {
*(.rela.dyn) *(.rela.dyn)
*(.rela.data.rplFuncStubs) *(.rela.data.rplFuncStubs)
*(.rela.lib.rplLibs) *(.rela.lib.rplLibs)
} } : hdr_sysdata
/* Relocations for .rodata sections */ /* Relocations for .rodata sections */
.rela.rodata ALIGN(32) : .rela.rodata ALIGN(32) :
{ {
*(.rela.rodata .rela.rodata.*) *(.rela.rodata .rela.rodata.*)
} } : hdr_sysdata
/* Relocations for .text sections */ /* Relocations for .text sections */
.rela.text ALIGN(32) : .rela.text ALIGN(32) :
{ {
*(.rela.text .rela.text.*) *(.rela.text .rela.text.*)
*(.rela.rplTramp.text) *(.rela.rplTramp.text)
} } : hdr_sysdata
/* Relocations for .data sections */ /* Relocations for .data sections */
.rela.data ALIGN(32) : .rela.data ALIGN(32) :
{ {
*(.rela.data .rela.data.*) *(.rela.data .rela.data.*)
} } : hdr_sysdata
/* Relocations for .bss sections */ /* Relocations for .bss sections */
.rela.bss ALIGN(32) : .rela.bss ALIGN(32) :
{ {
*(.rela.bss .rela.bss.*) *(.rela.bss .rela.bss.*)
} } : hdr_sysdata
/* Symbol tables */ /* Symbol tables */
.shstrtab ALIGN(32) : { *(.shstrtab) } .shstrtab ALIGN(32) : { *(.shstrtab) } : hdr_sysdata
.symtab ALIGN(32) : { *(.symtab) } .symtab ALIGN(32) : { *(.symtab) } : hdr_sysdata
.strtab ALIGN(32) : { *(.strtab) } .strtab ALIGN(32) : { *(.strtab) } : hdr_sysdata
/DISCARD/ : { /DISCARD/ : {
*(.interp) *(.interp)