[llvm-bugs] [Bug 41914] New: [AMDGPU][MC] Undefined labels are not handled correctly

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 16 11:51:03 PDT 2019


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

            Bug ID: 41914
           Summary: [AMDGPU][MC] Undefined labels are not handled
                    correctly
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: dpreobrazhensky at luxoft.com
                CC: llvm-bugs at lists.llvm.org

Used but undefined labels crash elf object writer.

An example program:

  s_branch undefined_label

Generate an object file:

  llvm-mc.exe -arch=amdgcn -filetype=obj

The result:

  unhandled relocation type
  UNREACHABLE executed at <...> AMDGPUELFObjectWriter
  Stack dump: <...>

Assembler should die more gracefully with a meaningful error message.

-- 
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/20190516/97982a15/attachment.html>


More information about the llvm-bugs mailing list