%pc relative addressing of string literals/const data
Gunther Nikl
gnikl@users.sourceforge.net
Thu Oct 21 18:18:00 GMT 2010
Michael Meissner wrote:
> Note, the 64-bit ABI requires that r2 have the current function's GOT in it
> when the function is called, while the 32-bit ABI uses r2 as a small data
> pointer (and possibly r13 as a second small data pointer).
If the 32-bit ABI is the SYSV-ABI, then you got the register usage
wrong. r13 is the small data pointer with -msdata=sysv and r2 is a
second small data pointer when using -msdata=eabi.
Joakim, did you try using -msdata=sysv together with "-G 64000"?
Gunther
More information about the Gcc
mailing list