register-relative data section accesses?

William Gatliff gatliff@haulpak.com
Thu Sep 9 11:01:00 GMT 1999


Guys:

I have a need for register-relative data access, i.e. the data
equivalent to PC-relative code addressing.

I don't see right offhand the gcc switches to do this, although it seems
like something that GNU would support...


For example, when I do this:

        return foo_data;

then, rather than this:

        mov.l  _foo_data, d0

I need this:

        mov.l  12(a4), d0

[Note that I'm a bit rusty on my 68k asm.  I hope my intent is at least
clear, tho'.]

Any ideas?  I know the MRI 68k compiler can do this...

Thanks!

b.g.



--
William A. Gatliff
Senior Design Engineer
Komatsu Mining Systems
To teach is to learn.




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list