[m-dev.] Trying to add shared objects support for ARM
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Dec 9 07:52:15 AEDT 2005
On 05-Dec-2005, Sergey Khorev <iamphet at nm.ru> wrote:
> I wonder what file should I compile with -fpic -S to see manipulations with GLOBAL_OFFSET_TABLE? Doesn't this really mean "compile with -fpic and then disassemly"? ;)
IIRC, GLOBAL_OFFSET_TABLE is typically used to refer to global or static variables.
So try e.g. something like
int x;
int foo (void) {
static int y;
x++; y++;
return x + y;
}
Also perhaps look at taking the address of functions
and calling functions via function pointers.
--
Fergus Henderson | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list