This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: hpux11.00 linking - Data Linkage Table (+z) overflow
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc at gcc dot gnu dot org
- Cc: mki at maconomy dot com
- Date: Mon, 2 Sep 2002 22:53:25 -0400 (EDT)
- Subject: Re: hpux11.00 linking - Data Linkage Table (+z) overflow
> /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)