This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GOT switch
- To: <gcc at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
- Subject: GOT switch
- From: Joy Mukherjee <jmukherj at csgrad dot cs dot vt dot edu>
- Date: Tue, 30 Oct 2001 16:01:23 -0500 (EST)
- cc: "Dr. Srinidhi Varadarajan" <srinidhi at cs dot vt dot edu>
Hi !
Is there anyway I can relocate the entire GOT of my program ? I am
trying to seperate the global space for my threads. To do so , I have
extracted the entire GOT and made copies of it - one for each thread and
each pointing to a different set of globals . To force each thread to
use its own GOT, I use -fPIC to force indexed addressing (%ebx) through
the GOT for all globals .The problem is that there are many other things
(constant strings for one) that are also referenced through %ebx. Thus
changing %ebx is entirely corrupting the program image .
Can anyone please tell me if there is a clean way of doing this or
getting around this ? Thanking you,
Sincerely,
Joy.
Joy Mukherjee
Graduate Student,
Deptt. of CS,
Virginia Tech,
Blacksburg,VA - 24061.