HP-UX 11 and ld +init
Mark Mitchell
mark@codesourcery.com
Tue Jul 29 11:52:00 GMT 2003
> > supported in the 64-bit linker. Was using +init with the 32-bit
> > linker intentional? Or should those changes just be moved to
> > pa64-hpux.h?
>
> Yes, this was intentional. The ld man page that I have lists these
> as common 32 and 64-bit options. I have tested this feature and
> there was some previous discussion on the list. The advantage of
> using these two options is that they work with shared libraries
> loaded with shl_load.
Well, that sounds great.
Unfortunately, we've got a brand-new fresh-from-the-factory HP-UX 11.11
machine, and its "ld" does not support "+init". (Not only is +init not
documented on the man page; it also causes the linker to issue an error.)
On this system, /usr/bin/ld is a symlink to /usr/ccs/bin/ld. There is also
/usr/ccs/lbin/ld{32,64}. ld32 also rejects +init. ld64 accepts it.
Both acc and aCC are installed on this system.
The manual page for "ld" says (at the very bottom) "HP-UX Release 11i:
November 2000".
Do you have any idea in what way your system is different from ours?
Thanks,
-- Mark
More information about the Gcc
mailing list