HP-UX 11 and ld +init

Kelley Cook kcook34@ford.com
Tue Jul 29 19:07:00 GMT 2003


Zack wrote:

> The need for this linker patch should be documented in install.texi.
> Could you prepare a diff?  I see that there is mention of one of the
> earlier HPUX linker patches already, but nothing about +init/+fini.
>
> zw

I went to add it, but it looks like it is already there :)

http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/install.texi.diff?r1=1.165&r2=1.166&sortby=date&only_with_tag=MAIN

 > +GCC 3.3 nows uses the ELF DT_INIT_ARRAY and DT_FINI_ARRAY capability
 > +to run initializers and finalizers on the 64-bit port.  The feature
 > +requires CVS binutils as of January 2, 2003, or a subsequent release
 > +to correct a problem arising from HP's non-standard use of the .init
 > +and .fini sections.  The 32-bit port uses the linker @option{+init}
 > +and @option{+fini} options.  As with the support for secondary symbols,
 > +there have been bugs in the order in which these options are executed
 > +by the HP linker.  So, again a recent linker patch is recommended.

Kelley Cook





More information about the Gcc mailing list