[llvm-bugs] [Bug 32307] New: Inconsistent init_array section type when using -static-libstdc++

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 16 05:10:56 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32307

            Bug ID: 32307
           Summary: Inconsistent init_array section type when using
                    -static-libstdc++
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: wielkiegie at gmail.com
                CC: llvm-bugs at lists.llvm.org

When building anything that uses any symbol from libstdc++ using gcc-5.2 and
lld-4.0 linker with -static-libstdc++ option I get the following:

ld: error: Section has different type from others with the same name
basic_file.o:(.init_array.00099)
ld: error: Section has different type from others with the same name
list.o:(.init_array.00099)
ld: error: Section has different type from others with the same name
globals_io.o:(.init_array.00099)
...

Reproducible example:

echo -e '#include<iostream>\nint main() { return 0; }' | g++ -xc++ -
-static-libstdc++

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170316/cddf7211/attachment.html>


More information about the llvm-bugs mailing list