This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]