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]

[Fwd: GOT update]


--- Begin Message --- Hello Nick,
I am working on supporting PIC feature to CR16 target (ie 16 bit processor) of
binutils. During this, I am able to generate the .got section, but its not filled with symbols address of .data section. Now, my GOT section shows all
NULL value (ie 0x00000 00000 000000 etc).
===
Contents of section .got:
300000 00000000 00000000 00000000 00000000 ................
Contents of section .got.plt:
300028 00000000 00000000 00000000 ............
Contents of section .data:
300034 00000000 d0000000 05000500 ............
Contents of section .comment:
===


Any idea/suggestion where I am doing wrong?

My testcase is (compiled with -fPIC option):
====
int a = 5;
main (){
  return a;;
}
===
In the above testcase a should be placed  GOT section.

Thank very much for your help.

Thanks
Swami


--- End Message ---

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