bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/14324] New: internal error in relocate, at ../../gold/x86_64.c


From: Bernhard.Rosenkranzer at linaro dot org
Subject: [Bug gold/14324] New: internal error in relocate, at ../../gold/x86_64.cc:3361 with gcc -mcmodel=large
Date: Mon, 02 Jul 2012 20:11:35 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14324

             Bug #: 14324
           Summary: internal error in relocate, at
                    ../../gold/x86_64.cc:3361 with gcc -mcmodel=large
           Product: binutils
           Version: 2.23 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    Classification: Unclassified


If gold is the default linker, samba 4.0.0-beta2's configure script fails while
checking the compiler.

It comes down to samba 4.x's usage of the -mcmodel=large compiler flag in
combination with -fPIC.

address@hidden ~]$ cat test.c
int puts(const char *s);
int main(int argc, char **argv) {
        puts("test");
}
address@hidden ~]$ gcc -mcmodel=large -fPIC test.c
/usr/bin/ld: internal error in relocate, at ../../gold/x86_64.cc:3361
collect2: error: ld returned 1 exit status

The same code w/ the same options links fine with bfd ld.

Seen on the gold included in hjl's binutils 2.22.52.0.4 release (20120604).

-- 
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]