This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Wrong object file generated with -fPIC option 2.17 ported to Interix
- From: Mayank Kumar <mayank at microsoft dot com>
- To: "binutils at sources dot redhat dot com" <binutils at sources dot redhat dot com>
- Date: Thu, 20 Sep 2007 01:07:47 +0800
- Subject: Wrong object file generated with -fPIC option 2.17 ported to Interix
- Accept-language: en-US
- Acceptlanguage: en-US
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