mirror of
https://github.com/devkitPro/wut.git
synced 2026-08-24 19:54:14 -05:00
Merge .rplTramp.text into .text section
This commit is contained in:
18
rules/rpl.ld
18
rules/rpl.ld
@@ -23,25 +23,9 @@ SECTIONS {
|
||||
/* Standard code section */
|
||||
.text ALIGN(32) : {
|
||||
*(.text .stub .text.*)
|
||||
} : hdr_text
|
||||
|
||||
/*
|
||||
* Trampolines for each RPL function, have the same symbol name of
|
||||
* than the function they should import.
|
||||
*
|
||||
* There will be 2 relocations in each trampoline pointing to the
|
||||
* function stub inside the .data.rplFuncStubs, we can edit these
|
||||
* relocation entries to use the RPL import during conversion to RPL.
|
||||
*
|
||||
* li r0, func_stub@lo -> .data.rplFuncStubs
|
||||
* oris r0, func_stub@hi -> .data.rplFuncStubs
|
||||
* mtctr r0
|
||||
* bctr
|
||||
*/
|
||||
.rplTramp.text ALIGN(32) : {
|
||||
*(.rplTramp.text)
|
||||
*(SORT(.rplTramp.text.*))
|
||||
}
|
||||
} : hdr_text
|
||||
|
||||
/* System stuff is for our elf2rpl converter to go through */
|
||||
. = ORIGIN(system);
|
||||
|
||||
Reference in New Issue
Block a user