Wrong object file generated with -fPIC option 2.17 ported to Interix
Mayank Kumar
mayank@microsoft.com
Wed Sep 19 17:37:00 GMT 2007
Hi All
While porting binutils 2.17 to interix, I am getting the following issue:-
An object file generated using -fPIC option has undefined symbols like the following:-
U L10@GOTOFF
U L12@GOTOFF
U L5@GOTOFF
U L6@GOTOFF
U _gl1@GOT
U _src@GOT
I also found that this is happening in the assembly phase. I did the following:-
Gcc -S -fPIC file.c
As -o file.o file.s
The object file generated have all the above as undefined symbol. I want to know what part of assembler or bfd code resolves these labels so that I can debug more to find out why these undefined symbols are getting generated.
Thanks
Mayank
More information about the Binutils
mailing list