Use a newer gcc, ld, and glibc, or use the minimal-toc options provided by the GCC driver to fix the TOC overflow (google this and you should find plenty of in depth explanations)
Matt
________________________________
Matthew Davis
Linux on POWER Technical Consultant
IBM eServer Solutions Enablement
[EMAIL PROTECTED]
(512)838-6135 t/l 678-6135
(512)731-2607 (cell)
[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED] 05/10/05 01:00 PM | To: yellowdog-devel@lists.terrasoftsolutions.com cc: Subject: yellowdog-devel Digest, Vol 8, Issue 1 |
Send yellowdog-devel mailing list submissions to
yellowdog-devel@lists.terrasoftsolutions.com
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-devel
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of yellowdog-devel digest..."
Today's Topics:
1. errors linking library in g77 (Bernard B Yoo)
----------------------------------------------------------------------
Message: 1
Date: Mon, 9 May 2005 11:21:44 -0700
From: Bernard B Yoo <[EMAIL PROTECTED]>
Subject: errors linking library in g77
To: yellowdog-devel@lists.terrasoftsolutions.com
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII
Hi,
I'm compiling a program in g77 and it runs into problems when linking in a library:
/usr/lib/gcc-lib/ppc-yellowdog-linux/3.2.2/../../../crt1.o(.text+0x20): In function `_start':
: relocation truncated to fit: R_PPC_REL24 __libc_start_main@@GLIBC_2.0
/usr/lib/gcc-lib/ppc-yellowdog-linux/3.2.2/../../../crti.o(.text+0x10): In function `call_gmon_start':
/home/dburcaw/BUILD/glibc/BUILD/glibc-2.3.1-20030220/build-ppc-linux/csu/crti.S:16: relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_
revisit.o(.text+0x20): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 s_rsle
revisit.o(.text+0x40): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 do_lio
revisit.o(.text+0x44): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 e_rsle
revisit.o(.text+0x60): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 s_rsne
revisit.o(.text+0xfc): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 s_wsfe
revisit.o(.text+0x118): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 do_fio
revisit.o(.text+0x134): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 do_fio
revisit.o(.text+0x138): In function `MAIN__':
: relocation truncated to fit: R_PPC_REL24 e_wsfe
I've had this problem before, but I don't remember what the fix was. The "/home/dburcaw" mentioned in the fourth line looks suspicious. I can successfully link in the same library into another program.
Bernard B. Yoo
Engineering Specialist
Astrodynamics Department
(310) 336-8574
------------------------------
_______________________________________________
yellowdog-devel mailing list
yellowdog-devel@lists.terrasoftsolutions.com
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-devel
End of yellowdog-devel Digest, Vol 8, Issue 1
*********************************************
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
<<inline: pic17347.gif>>
_______________________________________________ yellowdog-devel mailing list yellowdog-devel@lists.terrasoftsolutions.com http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-devel