http://sourceware.org/bugzilla/show_bug.cgi?id=15444
Bug #: 15444 Summary: Use of -g for large project results in: relocation truncated to fit: R_X86_64_32 against `.debug_info' Product: binutils Version: 2.16 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: peeter.j...@gmail.com Classification: Unclassified Attempting to link a large shared lib where too much code has been compiled with -g results in: /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crtn.o:(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' Adding -Wl,-verbose to the link flags, shows that all the .o's and .a's in the link command line are processed without error, and that it's only (presumably) near the end when this crtn.o is processed do things go badly: attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2//libc.so failed attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2//libc.a failed attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libc.so succeeded opened script file /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libc.so opened script file /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libc.so attempt to open /lib64/libc.so.6 succeeded /lib64/libc.so.6 attempt to open /usr/lib64/libc_nonshared.a succeeded attempt to open /lib64/ld-linux-x86-64.so.2 succeeded /lib64/ld-linux-x86-64.so.2 attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtendS.o succeeded /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtendS.o attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crtn.o succeeded /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crtn.o /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crtn.o:(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' This error occurs with both the default sles10 linker (GNU ld version 2.16.91.0.5 20051219), and with the newest version: GNU ld (GNU Binutils) 2.23.2) I'm unsure if this is a 1) an ld bug, or 2) a bug in the crtn.o file (this is from the sles10 version of gcc, version: gcc (GCC) 4.1.2 20070115, which is old), or 3) a limitation (if so, is it one imposed by the c runtime crtn.o file or the linker?) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils