This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: HP-UX 11 and ld +init
- From: "Mark Mitchell" <mark at codesourcery dot com>
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: <dave dot anglin at nrc dot ca>,<gcc at gcc dot gnu dot org>
- Date: Tue, 29 Jul 2003 02:52:17 -0700
- Subject: Re: HP-UX 11 and ld +init
- Organization: CodeSourcery, LLC
- References: <200307290625.h6T6PAnu013589@hiauly1.hia.nrc.ca>
> > 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