OSDev.org

The Place to Start for Operating System Developers
It is currently Sun May 19, 2024 6:21 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: relocation of static library
PostPosted: Fri May 23, 2008 5:43 am 
Offline
Member
Member
User avatar

Joined: Thu Jun 22, 2006 8:33 am
Posts: 175
Location: Hong Kong
Hi all
Why the .a (static library) still need a .got (global offset
table) session?
I think the static library will linked to the target, all the global
variable will have a place to live in, why need relocation?

thanks
from Peter (cmk128@hotmail)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 23, 2008 10:02 pm 
Offline
Member
Member
User avatar

Joined: Tue Nov 09, 2004 12:00 am
Posts: 120
Location: United States
I can see no reason why there should be a global offset table emitted during compilation of a static library using GCC. It will be emitted for a shared library. What flags are you using during compilation and packaging of the library? *curious*


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group