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: i...@airs.com
        ReportedBy: bernhard.rosenkran...@linaro.org
                CC: ccout...@google.com
    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.

[bero@localhost ~]$ cat test.c
int puts(const char *s);
int main(int argc, char **argv) {
        puts("test");
}
[bero@localhost ~]$ 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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to