Skip to content

Commit 9de3ef2

Browse files
authored
Merge pull request #366 from santiago046/master
Fix "no sceModuleInfo section found" when linking with `--gc-sections`
2 parents e62057d + b9b814f commit 9de3ef2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/base/linkfile.prx.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ SECTIONS
8383
KEEP (*(.fini))
8484
} =0
8585
/* PSP library stub functions. */
86-
.sceStub.text : { *(.sceStub.text) *(SORT(.sceStub.text.*)) }
86+
.sceStub.text : { KEEP(*(.sceStub.text)) KEEP(*(SORT(.sceStub.text.*))) }
8787
PROVIDE (__etext = .);
8888
PROVIDE (_etext = .);
8989
PROVIDE (etext = .);
@@ -98,7 +98,7 @@ SECTIONS
9898
.rodata.sceModuleInfo section must appear before the .rodata section
9999
otherwise it would get absorbed into .rodata and the PSP bootloader
100100
would be unable to locate the module info structure. */
101-
.rodata.sceModuleInfo : { *(.rodata.sceModuleInfo) }
101+
.rodata.sceModuleInfo : { KEEP (*(.rodata.sceModuleInfo)) }
102102
.rodata.sceResident : { *(.rodata.sceResident) }
103103
.rodata.sceNid : { KEEP (*(.rodata.sceNid)) }
104104
.rodata.sceVstub : { *(.rodata.sceVstub) *(SORT(.rodata.sceVstub.*)) }

0 commit comments

Comments
 (0)