This is the mail archive of the gcc-patches@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 PA LINK_SPEC change (HP linker & shared libs)


> From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
>
> We need the new options documented in invoke.texi.  I also think we
> need an update to install.texi regarding the usage of the HP linker.
> Because the debug sections generated by gcc differ from what pxdb
> expects, a user needs to set LD_PXDB to point to a simple pxdb
> script that does an "exit 0" in order stop HP ld/pxdb from warning.
> Can you do these documentation updates?

Here is a patch for the documentation changes about -mgnu-ld and
-mhp-ld.  I also added -mlinker-opt to HPPA options list.  It was
already in the set of descriptions, just not in the gccoptlist for HPPA.

As for LD_PXDB, how about if I set it to /usr/ccs/bin/size via the
INIT_ENVIRONMENT variable in pa64-hpux.h.  size will always return 0 (if
the object exists) and the output seems to get swallowed up without
being printed so it is working fine for me when running GCC with the HP
linker.  The advantage of using size is that it is in the same fileset
as ld so any system with the HP ld on it should also have size and we
don't need to create anything new.  And of source we can set LD_PXDB
regardless of which linker the user finally uses since the GNU linker
will just ignore the LD_PXDB env. variable.

Steve Ellcey
sje@cup.hp.com


2002-10-03  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	Thu Oct  3 12:37:10 2002
--- gcc/gcc/doc/invoke.texi	Thu Oct  3 12:51:13 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,7990 ----
  @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.
+ @end table
+ 
+ @item -mhp-ld
+ @opindex hp-ld
+ Use GNU 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.
  @end table
  
  @node Intel 960 Options


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