public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GOT switch
@ 2001-10-30 13:02 Joy Mukherjee
  0 siblings, 0 replies; only message in thread
From: Joy Mukherjee @ 2001-10-30 13:02 UTC (permalink / raw)
  To: gcc, gcc-help; +Cc: Dr. Srinidhi Varadarajan

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-30 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-30 13:02 GOT switch Joy Mukherjee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).