global offset table

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

global offset table

Post by mcheung63 »

Hi all
what kind of c/c++ code will produce global_offset_table in my object file?
tahnks
from Peter ([email protected])
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: global offset table

Post by Combuster »

/me lost count of how often he removed the emailaddress from your posts...
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: global offset table

Post by JamesM »

mcheung63 wrote:Hi all
what kind of c/c++ code will produce global_offset_table in my object file?
tahnks
from Peter ([email protected])
An ELF shared object usually contains a GOT.
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: global offset table

Post by mcheung63 »

thanks all, but i didn't use any shared memory. That's why i don't understand the reason of having global_offset_table in my elf object.
Post Reply