public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: hpux11.00 linking - Data Linkage Table (+z) overflow
@ 2002-09-02 19:53 John David Anglin
  0 siblings, 0 replies; 3+ messages in thread
From: John David Anglin @ 2002-09-02 19:53 UTC (permalink / raw)
  To: gcc; +Cc: mki

>         /usr/ccs/bin/ld: Data Linkage Table (+z) overflow in file
> /data/mk/msgcc/OracleLib/libocic.a(oci.o) - use +Z option to recompile

As the message says, the object module oci.o needs to be recompiled
using +Z (HP compiler) or -fPIC (GCC).  You can't fix the problem
by changing the link command.

>        g++ -fPIC -Wl,+b/tmp/foo -Wl,+s -mminimal-toc ...

As far as I know, "-mminimal-toc" is not a GCC option applicable to the PA.

> I know -fPIC and that it should help. But I've also found DPIC mentioned -

"-DPIC" doesn't change the behavior of the compiler.  Some code uses
to modify the code generated (asm) when PIC code is needed.  It won't
affect size of DLT.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: hpux11.00 linking - Data Linkage Table (+z) overflow
  2002-09-02  8:19 Mads
@ 2002-09-03 10:11 ` Jeff Law
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Law @ 2002-09-03 10:11 UTC (permalink / raw)
  To: Mads; +Cc: gcc

In message <E88493086664D511A1E4000103330E82021B735F@mail.maconomy.dk>, "Mads" 
writes:
 >Hello,
 >
 >using
 >	bash-2.05$ gcc -v
 >	Reading specs from /data/mk/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.2/sp
 >ecs
 >	Configured with:
 >../configure --prefix=/data/mk/gcc --enable-languages=c,c++ --with-gnu-as --
 >without-gnu-ld --disable-threads
 >	Thread model: single
 >	gcc version 3.2
 >	bash-2.05$
 >
 >linking a big program using
 >
 >	g++ -fPIC -Wl,+b/tmp/foo -Wl,+s ...
 >
 >I get
 >	/usr/ccs/bin/ld: Data Linkage Table (+z) overflow in file
 >/data/mk/msgcc/OracleLib/libocic.a(oci.o) - use +Z option to recompile
 >	collect2: ld returned 1 exit status
 >
 >Linking with
 >
 >	g++ -fPIC -Wl,+b/tmp/foo -Wl,+s -mminimal-toc ...
 >
 >makes no change. According to ps no +W is used? Shouldn't that be used
 >automatically?
You'd have to recompile the objects inside libocia.a using -fPIC.
jeff


^ permalink raw reply	[flat|nested] 3+ messages in thread

* hpux11.00 linking - Data Linkage Table (+z) overflow
@ 2002-09-02  8:19 Mads
  2002-09-03 10:11 ` Jeff Law
  0 siblings, 1 reply; 3+ messages in thread
From: Mads @ 2002-09-02  8:19 UTC (permalink / raw)
  To: gcc

Hello,

using
	bash-2.05$ gcc -v
	Reading specs from /data/mk/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.2/specs
	Configured with:
../configure --prefix=/data/mk/gcc --enable-languages=c,c++ --with-gnu-as --
without-gnu-ld --disable-threads
	Thread model: single
	gcc version 3.2
	bash-2.05$

linking a big program using

	g++ -fPIC -Wl,+b/tmp/foo -Wl,+s ...

I get
	/usr/ccs/bin/ld: Data Linkage Table (+z) overflow in file
/data/mk/msgcc/OracleLib/libocic.a(oci.o) - use +Z option to recompile
	collect2: ld returned 1 exit status

Linking with

	g++ -fPIC -Wl,+b/tmp/foo -Wl,+s -mminimal-toc ...

makes no change. According to ps no +W is used? Shouldn't that be used
automatically?


I know -fPIC and that it should help. But I've also found DPIC mentioned -
what is that about?


http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux11 says that

	GNU binutils 2.13 or later is recommended with the 64-bit port. The HP
assembler is not supported.
	It is highly recommended that the GNU linker be used as well.

That is only true for 64-bit? For 32-bit HP ld _must_ be used?


TIA,

Mads

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-03 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02 19:53 hpux11.00 linking - Data Linkage Table (+z) overflow John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
2002-09-02  8:19 Mads
2002-09-03 10:11 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).