DragonFly BSD
DragonFly bugs List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Thu, 5 May 2005 01:29:53 +0900

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]