bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15444] New: Use of -g for large project results in: relocation t


From: peeter.joot at gmail dot com
Subject: [Bug ld/15444] New: Use of -g for large project results in: relocation truncated to fit: R_X86_64_32 against `.debug_info'
Date: Tue, 07 May 2013 22:08:10 +0000

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: address@hidden
        ReportedBy: address@hidden
    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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]