--- Begin Message ---
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: "Nick Clifton" <nickc at redhat dot com>
- Date: Wed, 09 Jul 2008 14:43:28 +0530
- Subject: GOT update
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 ---