[llvm-bugs] [Bug 32980] New: ThinLTO, relocation refers to discard section
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 9 09:37:53 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32980
Bug ID: 32980
Summary: ThinLTO, relocation refers to discard section
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dcallahan at fb.com
CC: llvm-bugs at lists.llvm.org
A ThinLTO build of a quite large application is generating a warning from the
linker
./boost/exception/detail/exception_ptr.hpp:143: warning: relocation refers
to discarded section
and the binary faults during static construction by trying access location 0.
=> 0x0000000006f31fd1
<_GLOBAL__sub_I__ZN5boost6detail16thread_data_baseD2Ev()+33>: cmpb
$0x0,-0x6f31fd8(%rip) # 0x0
I have verified this problem exists in the current trunk as well.
I would love to work on reducing the problem but am uncertain how to get going.
How do I determine which section is being discarded and why?
Assuming this is a duplicate COMDAT, is the relocation supposed to be fixed? If
so where?
There are a lot of these warnings. The most unusual aspect of the build is the
presence of “—whole-archive” link commands although I don’t how that would
present a problem to ThinLTO.
--
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/20170509/da3807d2/attachment.html>
More information about the llvm-bugs
mailing list