This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: HPUX PA LINK_SPEC change (HP linker & shared libs)
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: dave at hiauly1 dot hia dot nrc dot ca
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Oct 2002 09:40:10 -0700 (PDT)
- Subject: Re: HPUX PA LINK_SPEC change (HP linker & shared libs)
Here is a new version of the documentation change for the HPPA 64
options -mgnu-ld and -mhp-ld. I added some of the text that David
Anglin included in his comments to make it clear that this affects
options passed to ld and not what ld is used. I also fixed a
cut-n-paste error pointed out by Fergus Henderson.
Steve Ellcey
sje@cup.hp.com
2002-10-04 Steve Ellcey <sje@cup.hp.com>
* doc/invoke.texi (HPPA): Add -mlinker-opt, -mgnu-ld,
and -mhp-ld options to list of options. Add -mgnu-ld
and -mhp-ld option descriptions.
*** gcc.orig/gcc/doc/invoke.texi Fri Oct 4 09:17:05 2002
--- gcc/gcc/doc/invoke.texi Fri Oct 4 09:33:11 2002
*************** in the following sections.
*** 501,507 ****
@gccoptlist{
-march=@var{architecture-type} @gol
-mbig-switch -mdisable-fpregs -mdisable-indexing @gol
! -mfast-indirect-calls -mgas -mjump-in-delay @gol
-mlong-load-store -mno-big-switch -mno-disable-fpregs @gol
-mno-disable-indexing -mno-fast-indirect-calls -mno-gas @gol
-mno-jump-in-delay -mno-long-load-store @gol
--- 501,508 ----
@gccoptlist{
-march=@var{architecture-type} @gol
-mbig-switch -mdisable-fpregs -mdisable-indexing @gol
! -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld @gol
! -mjump-in-delay -mlinker-opt @gol
-mlong-load-store -mno-big-switch -mno-disable-fpregs @gol
-mno-disable-indexing -mno-fast-indirect-calls -mno-gas @gol
-mno-jump-in-delay -mno-long-load-store @gol
*************** Generate the predefine, @code{_SIO}, for
*** 7970,7975 ****
--- 7971,8000 ----
@option{-mwsio}. This generates the predefines, @code{__hp9000s700},
@code{__hp9000s700__} and @code{_WSIO}, for workstation IO. These
options are available under HP-UX and HI-UX.
+
+ @item -mgnu-ld
+ @opindex gnu-ld
+ Use GNU ld specific options. This passes @option{-shared} to ld when
+ building a shared library. It is the default when GCC is configured,
+ explicitly or implicitly, with the GNU linker. This option does not
+ have any affect on which ld is called, it only changes what parameters
+ are passed to that ld. The ld that is called is determined by the
+ @option{--with-ld} configure option, gcc's program search path, and
+ finally by the user's @env{PATH}. The linker used by GCC can be printed
+ using @samp{which `gcc -print-prog-name=ld`}.
+
+ @item -mhp-ld
+ @opindex hp-ld
+ Use HP ld specific options. This passes @option{-b} to ld when building
+ a shared library and passes @option{+Accept TypeMismatch} to ld on all
+ links. It is the default when GCC is configured, explicitly or
+ implicitly, with the HP linker. This option does not have any affect on
+ which ld is called, it only changes what parameters are passed to that
+ ld. The ld that is called is determined by the @option{--with-ld}
+ configure option, gcc's program search path, and finally by the user's
+ @env{PATH}. The linker used by GCC can be printed using @samp{which
+ `gcc -print-prog-name=ld`}.
+
@end table
@node Intel 960 Options