This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: HPUX function address.
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc at gcc dot gnu dot org
- Cc: daniel at grunblatt dot com dot ar
- Date: Wed, 15 Oct 2003 18:21:26 -0400 (EDT)
- Subject: Re: HPUX function address.
> 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)