Re: Test fixes for calling functions on Itanium
On Fri, 26 Jul 2002, Wichmann, Mats D wrote:
> To quote David Mosberger on the topic (with reference
> to a small test program he was supplied):
>
> The test program assumes that taking the address of a
> function returns the entry-point address of that function.
> This is not so on ia64 (and several other arches, including
> VAX, PA-RISC, and PPC, I believe). Instead, what you get
> on ia64 is a pointer to a function descriptor:
>
> struct fdesc {
> void *ip; /* entry point (code address) */
> void *gp; /* global-pointer */
> };
>
>
> The patches as written are totally Itanium-specific
> and have no effect if not compiling __ia64__. If this
> code applies to other architectures, someone else will
> have to make those additions.
Isn't the languange and compilation system supposed to hide these kind
of details better than this?
Stuart
Stuart R. Anderson anderson@netsweng.com
Network & Software Engineering http://www.netsweng.com/
--
To UNSUBSCRIBE, email to lsb-test-request@lists.linuxbase.org
with subject of "unsubscribe". Trouble? Email listmaster@lists.linuxbase.org
Reply to: