-
-
Save SK83RJOSH/c56d47f3abdd95478d0a1608094dec49 to your computer and use it in GitHub Desktop.
psp.ld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENTRY(module_start) | |
SECTIONS | |
{ | |
/* PRX format requires text to begin at 0 */ | |
.text 0 : { | |
*(.text .text.*) | |
} | |
/* Sort stubs for convenient ordering */ | |
.sceStub.text : { *(.sceStub.text) *(SORT(.sceStub.text.*)) } | |
/* Provide etext */ | |
PROVIDE (__etext = .); | |
PROVIDE (_etext = .); | |
PROVIDE (etext = .); | |
/* Keep these sections around, even though they may appear unused to the linker */ | |
.lib.ent.top : { KEEP(*(.lib.ent.top)) } | |
.lib.ent : { KEEP(*(.lib.ent)) } | |
.lib.ent.btm : { KEEP(*(.lib.ent.btm)) } | |
.lib.stub.top : { KEEP(*(.lib.stub.top)) } | |
.lib.stub : { KEEP(*(.lib.stub)) } | |
.lib.stub.btm : { KEEP(*(.lib.stub.btm)) } | |
/* Exception support */ | |
.eh_frame_hdr : { KEEP(*(.eh_frame_hdr)) } | |
. = ALIGN(8); | |
PROVIDE(__eh_frame = .); | |
.eh_frame : | |
{ | |
KEEP(*(.eh_frame)) | |
} | |
/* These are explicitly listed to avoid being merged into .rodata */ | |
.rodata.sceResident : { *(.rodata.sceResident) } | |
.rodata.sceModuleInfo : { *(.rodata.sceModuleInfo) } | |
/* Sort NIDs for convenient ordering */ | |
.rodata.sceNid : { *(.rodata.sceNid) *(SORT(.rodata.sceNid.*)) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment