This is the mail archive of the gcc@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: 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)


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