Merge .rplTramp.text into .text section

This commit is contained in:
James Benton 2015-12-28 06:18:08 -08:00
parent e46445c3ec
commit fdc0e1ec41

View File

@ -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);