This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]