[llvm-bugs] [Bug 49252] New: Wasm section symbols get an unwanted 0 suffix.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 18 11:47:47 PST 2021


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

            Bug ID: 49252
           Summary: Wasm section symbols get an unwanted 0 suffix.
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: aardappel at gmail.com
                CC: llvm-bugs at lists.llvm.org

Context: https://reviews.llvm.org/D96473

This is not great especially from an assembly pov, where we refer to a symbol
that doesn't appear to be defined, since only the identifier without 0 is
present.

Section symbols get this suffix because of the "true" argument to createSymbol
(see above code). Replacing that call with getOrCreateSymbol (which would also
take care of adding to Symbols) would probably be better but seems to break
assumptions in WasmObjectWriter that need further testing.

-- 
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/20210218/5cbb1fd3/attachment.html>


More information about the llvm-bugs mailing list