[llvm-bugs] [Bug 41133] Improve error message for relocation against discarded section

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 22 19:09:57 PDT 2019


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

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED

--- Comment #4 from Fangrui Song <i at maskray.me> ---
Fixed by D59649/r361359

Though the approach (heuristic) to find the associated SHT_GROUP can be
improved.

More common issues are references to discarded STT_SECTION (local symbol). This
is commonly used by compilers to reduce the number of local symbols. Since we
catch references to undefined local symbols now (r361213), D61583 will give us
a nice diagnostic.

-- 
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/20190523/1385051f/attachment.html>


More information about the llvm-bugs mailing list