Okay, so what do we do with the new errno?

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Wed May 4 09:30:24 PDT 2005


On Wed, May 04, 2005 at 05:53:25AM -0700, walt wrote:
> But the ruby18 port has a different outcome:  I can get it to
> compile by deleting the offending lines but when trying to run
> the executable ld-elf.so complains about 'Unsupported relocation
> type 37 in non-PLT relocations'.
> 
> Does this error sound like it could be from deleting those
> declarations of errno?

I doubt it, you can reproduce it with the following small example:

$ cat a.c
#include <errno.h>
int main() {return errno;}

$ gcc a.c && ./a.out

$ gcc -fPIC a.c && ./a.out
/usr/libexec/ld-elf.so.1: ./a.out: Unsupported relocation type 37 in non-PLT relocations





More information about the Bugs mailing list