public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Global addressing
       [not found] <Pine.OSF.4.33.0109041751470.26258-100000@csgrad.cs.vt.edu>
@ 2001-09-04 15:10 ` Joy Mukherjee
  0 siblings, 0 replies; 3+ messages in thread
From: Joy Mukherjee @ 2001-09-04 15:10 UTC (permalink / raw)
  To: gcc-help

 Hi !
 	I need to relocate all the global variables of a program to some
 other address and then force the executable to use the relocated set
 instead of the original one . The problem is that when I looked at the
 assembly code generated, it seems that the compiler uses direct addressing
 for such globals .
 	Is there anyway I can force the compiler to use indexed addressing
 ONLY for all variables - local/global ? I am working on the Intel-Linux
 plateform . I would really appreciate any help .

 Joy.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Global addressing
  2001-09-10 14:28 ` Joy Mukherjee
@ 2001-09-13 17:36   ` Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2001-09-13 17:36 UTC (permalink / raw)
  To: Joy Mukherjee; +Cc: gcc, gcc-help

On Sep 10, 2001, Joy Mukherjee <jmukherj@csgrad.cs.vt.edu> wrote:

> I want to know the exact addresses where the GOT begins and ends.
> How can I do that ?

Look for `.got' in the output of `objdump -h'.

In case you want to do it at run-time, it depends on the platform.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Global addressing
       [not found] <oru1ybbtoo.fsf@free.redhat.lsd.ic.unicamp.br>
@ 2001-09-10 14:28 ` Joy Mukherjee
  2001-09-13 17:36   ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Joy Mukherjee @ 2001-09-10 14:28 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc, gcc-help

Hi! Just one more thing to ask - Is there any way I can get the beginning
and end addresses of the Global Offset Table ? The tag
_GLOBAL_OFFSET_TABLE_ points to somewhere in the middle of the .got
section so that both +ve and -ve offsets are possible , but I want to know
the exact addresses where the GOT begins and ends . How can I do that ?
Thank you so much for all your help .

Joy



******************************************************************************

JOY MUKHERJEE


OFFICE:

GRADUATE STUDENT
DEPTT. OF COMPUTER SCIENCE
MCBRYDE HALL
VIRGINIA TECH
BLACKSBURG , VA - 24061
PH. - (540) 231 5853

RESIDENCE:

1211 PROGRESS STREET
APT. # 7100 F
BLACKSBURG , VA - 24060
USA.
PH. - (540) 951 7771

Other e-mails : jmukherj@vt.edu
		jmjee@lycos.com

******************************************************************************


On 10 Sep 2001, Alexandre Oliva wrote:

> On Sep  6, 2001, Joy Mukherjee <jmukherj@csgrad.cs.vt.edu> wrote:
>
> > But is there any other way also to force indexed global
> > addressing ?
>
> I don't think there's any other mostly target-independent flag.  Some
> targets may offer flags to do it, but none of those I'm familiar
> with do.
>
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-13 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.OSF.4.33.0109041751470.26258-100000@csgrad.cs.vt.edu>
2001-09-04 15:10 ` Global addressing Joy Mukherjee
     [not found] <oru1ybbtoo.fsf@free.redhat.lsd.ic.unicamp.br>
2001-09-10 14:28 ` Joy Mukherjee
2001-09-13 17:36   ` Alexandre Oliva

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).