[llvm-bugs] [Bug 43457] attributes that force symbols into named sections can create broken ELF output

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 23 03:14:12 PDT 2020


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

Ben Dunbobbin <bd1976llvm at gmail.com> changed:

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

--- Comment #3 from Ben Dunbobbin <bd1976llvm at gmail.com> ---
Mergeable issues fixed by: 86478d3de91a.

During review we agreed that we are happy with 86478d3de91a being the full fix
for this bug.

Originally, I was of the opinion that we should diagnose/fix the case of any
symbol being explicitly assigned to an incompatible section. For example
putting a function in the data section (.data). However, you can easily do this
at link time (with a linker script) and no diagnostic will be emitted. For most
symbols the Lowering behaviour is also obvious from the source code. Mergeable
symbols are the exception as it is not obvious that these will be optimized
during Lowering.

-- 
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/20200423/4f61242e/attachment-0001.html>


More information about the llvm-bugs mailing list