Urgent problem with __i686.get_pc_thunk.bx (not the usual problem)
Dr. Peter Burkhard
dr.peterburkhard@yahoo.com
Fri May 16 16:10:00 GMT 2008
Hi all,
I'm in trouble with -fpic code. Maybe some expert here may help?
The problem:
I make a custom ELF binary, where I add a custom section .special
This worked for me, I can mark functions/data with __attribute__ and move the code in the output to section .special (I added .special definitions to the linker script).
However, If I compile it with -fpic, then the __i686.get_pc_thunk.bx() stub comes from some other library and goes into .text, not .special.
I would like to use my own __i686.get_pc_thunk.bx() inside the section .special to avoid calls to .text from .special. The section .special must be "self-contained", that is it may not call __i686.get_pc_thunk.bx() in .text. Instead I woudl like to write my own version of __i686.get_pc_thunk.bx() and put it into special.
Is this possible? And how?
*desperated*
Thanks
More information about the Gcc-help
mailing list