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: Jeff Law <law at porcupine dot slc dot redhat dot com>
- To: "Mads" <mki at maconomy dot dk>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 03 Sep 2002 11:16:21 -0600
- Subject: Re: hpux11.00 linking - Data Linkage Table (+z) overflow
- Reply-to: law at redhat dot com
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