HPUX function address.
John David Anglin
dave@hiauly1.hia.nrc.ca
Wed Oct 15 23:20:00 GMT 2003
> 0x207ec doesn't contain it, I was wrong to say HP-UX, it's a linux running on
> hppa, is that the problem? or can I just call 0x00020818 and expect 'func'
> to be reached?
The situations are similar but there are slight implementation differences
between linux and hpux. The default on linux is to use lazy linking.
Initially, all function descriptors point to a small bit of code in the
global offset table which jumps to a routine in the dynamic loader to
resolve the address of the function and build the function descriptor.
After the first call to a function, the function descriptor will be setup
as indicated by Jeff.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the Gcc
mailing list