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

GCC/G++ AIX linker problem


GCC Version 2.95.1
IBM AIX  4.1.5
 
Command Line:
    g++ -g -Wall --unsigned-char -DUSE_DIRENT -DUNIX -DDISAM -DFFDECL -DUSCHAR
        -I/usr/mark/fred/5.30.excel -I/usr/local/include -I/usr/mark/disam/head main.cpp
               libbuses_elf.a libtimesheetsui_elf.a libtimesheets_elf.a libtimesheetstaticdataui_elf.a
        libtimesheetstaticdata_elf.a libbase_elf.a
libevent_elf.a
        /usr/mark/fred/5.30.excel/libff_elf.a -lm -o buses
        /usr/mark/disam/code/libdisam.a /usr/local/lib/libexpect.a
        /usr/local/lib/libtcl8.0.a
 
I have a problem with GCC/G++ (GNU C/C++ compiler) linking a large
executable under AIX 4.1.5.  The error message returned is:
 
ld: 0711-781 ERROR: TOC overflow. TOC size: 112492   Maximum size 65536
collect2: ld returned 12 exit status
 
The IBM web page documents a similar bug report IX75823 and an appropriate
fix (PTF) U455193 which I have tried installing to no avail. Gnu suggests
using compiler flags -mminimal-toc which again do not seem to have any
effect.
 
Any ideas or possible work around would be greatly appreciated.
 
Richard Hann
 
P.S. All the code compilers, links and runs under SCO Openserver 5
 
----------------------------------------------------------------------------
Richard Hann                                               Tel: 01993 200123
Excel Solutions Ltd.                                       Fax: 01993 200220
2 Des Roches Square
Witan Way
Witney
Oxfordshire                            WWW: http://www.excel-solutions.co.uk
OX8 6BE                                email:  richard@excel-solutions.co.uk
----------------------------------------------------------------------------

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