bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/18250] New: segfault on BFD linker using clang llvm plugin


From: chris.chrulski at yahoo dot com
Subject: [Bug ld/18250] New: segfault on BFD linker using clang llvm plugin
Date: Fri, 10 Apr 2015 21:01:57 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18250

            Bug ID: 18250
           Summary: segfault on BFD linker using clang llvm plugin
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: chris.chrulski at yahoo dot com
                CC: hjl.tools at gmail dot com

Created attachment 8239
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8239&action=edit
reproducer

The BFD linker seg faults on the attached test case when using LLVM LTO, but
will pass when using the gold linker. Tested against the binutils git head
version on April 9, 2015, and svn head of LLVM project from April 8, 2015.


Run the commands in the attached go.sh script.

+ clang -c -O2 -flto prog.c
+ clang -c -O2 -flto test1.c
+ clang -c -O2 -flto test2.c
+ llvm-ar scr libt.a test1.o test2.o
+ clang -flto prog.o libt.a -v
...
clang-3.7: error: unable to execute command: Segmentation fault
clang-3.7: error: linker command failed due to signal (use -v to see
invocation)

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