Hi
How can I tell the linker to put the trampoline jump functions to another section that i will define
rather than the default .text section.
I could not see any information on that on cgtools doc.
best regards
izzet
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
How can I tell the linker to put the trampoline jump functions to another section that i will define
rather than the default .text section.
I could not see any information on that on cgtools doc.
best regards
izzet
I think the question is meaningless since the trampoline call that does long branch is inserted into the place of the orginal call.
so a trampoline call code will be at the same memory place as the original code.
i thought a trampoline call was a separate function..
regards
izzet
Suppose function A calls function B, which happens to be too far away for the short CALL instruction to reach. The linker inserts a tiny trampoline function T which executes a long branch to function B, and rewrites A's call so that it actually calls T. However, T must be placed close to function A, or the short CALL in A won't reach it. For this reason, T needs to go in the same section as A.