This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7663: AIX-LD fails with TOC overflow
- From: wharms at bfs dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 20 Aug 2002 19:07:53 -0000
- Subject: c++/7663: AIX-LD fails with TOC overflow
- Reply-to: wharms at bfs dot de
>Number: 7663
>Category: c++
>Synopsis: AIX-LD fails with TOC overflow
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Aug 20 12:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: wharms@bfs.de
>Release: unknown-1.0
>Organization:
>Environment:
creating
aix 4.2.0
gcc version 2.95.2
compiling gcc-3.2
>Description:
when compiling cc1plus the AIX-ld fails with
gcc -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-
long-long -DHAVE_CONFIG_H -o cc1plus \
cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parse.o cp/ptree
.o cp/rtti.o cp/spew.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o c
p/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-lang.o attribs.o c-common.o c-format.o c-pragma.o c-seman
tics.o c-lex.o main.o libbackend.a libcpp.a ./intl/libintl.a -liconv ../libiberty/libiberty.a
ld: 0711-781 ERROR: TOC overflow. TOC size: 77396 Maximum size: 65536
According to the manpage big TOC's carry a heavy performance penalty on AIX.
>How-To-Repeat:
>Fix:
add LDFLAGS += -Wl,-bbigtoc
so you get a warning because of the performance problems
>Release-Note:
>Audit-Trail:
>Unformatted: