mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-05 21:58:14 +01:00
Merge .rplTramp.text into .text section
This commit is contained in:
parent
e46445c3ec
commit
fdc0e1ec41
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);
|
||||
|
Loading…
Reference in New Issue
Block a user