[llvm-bugs] [Bug 32980] New: ThinLTO, relocation refers to discard section
llvm-bugs at lists.llvm.org
Tue May 9 09:37:53 PDT 2017
Bug ID: 32980
Summary: ThinLTO, relocation refers to discard section
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
./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.
$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
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...
More information about the llvm-bugs