search for: real_function_dest

Displaying 2 results from an estimated 2 matches for "real_function_dest".

2017 Jul 26
0
armv7 pc-rel bx thumb instruction
...an oversight. > Would you mind helping me understand how these branch islands work? The basic idea is that if a call destination is too far away for the instruction to make it there in one step the linker inserts a code sequence roughly like this: ldr ip, Laddr bx ip Laddr: .word real_function_dest that is in range and converts the original call to jump there instead. This allows the jump to reach anywhere in the 32-bit address since the pointer at Laddr can be anything it wants. There are bells and whistles for PIC code, and obviously linker internal details get involved, but for those you...
2017 Jul 26
2
armv7 pc-rel bx thumb instruction
Hi Tim, Thank you for clarifying what the error actually means! I did read something about the BLX instruction but since I'm compiling strictly for thumb, it didn't make much sense to me. Adding -mdisable-tail-calls as a cc1 command indeed allowed me to link the generated binary. After looking some more at the ld64 source code, I came across the following comment: // The tail-call