PLT calls in bsd-setjmp.S, bsd-_setjmp.S and setjmp.S
Joakim Tjernlund
joakim.tjernlund at transmode.se
Thu Jan 4 18:32:02 UTC 2007
while impl. secre PLT for ppc I found that PLT calls from
assembler are diffrent, one has to setup the GOT
before doing b xxx at plt calls.
The bsd-setjmp.S, bsd-_setjmp.S and setjmp.S doesn't
need to call funs via the plt because the
functions called are all defined within libc.
So I changed them all to:
-#ifdef __PIC__
- b __sigsetjmp at plt
-#else
- b __sigsetjmp
-#endif
+
+ b __sigsetjmp at local
+
Now pretty much all the other arch also do plt calls
here and I think they don't have to. It may be a problem
in the future.
Jocke
More information about the uClibc
mailing list