This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
pic support question
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: binutils at sources dot redhat dot com, "Nick Clifton" <nickc at redhat dot com>
- Date: Thu, 03 Jul 2008 12:01:29 +0530
- Subject: pic support question
Hi All,
Currently I am working supporting PIC feature for a 16-bit processor in
Binutils. I am able to generate the GOT based relocations and .got and .got.plt
sections in the final linking stage. But problem is:
Unable to set/calculate the offset of GOT, for global symbols.
For ex: MOVD a@GOT, (r12)
In the above instruction, a-> is global var and linker should place the
offset value from Global offset Table. But its happening, Instead linker
just placing the 'a' address in the above instruction.
Can any one guess, what going wrong in the above
Thanks in advance for your valuable advise/suggestion.
Thanks
Swami