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

            Bug ID: 52442
           Summary: Wasm .debug_aranges should not contain both code and
                    data addresses
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedb...@nondot.org
          Reporter: aardap...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Follow-up from: https://bugs.llvm.org/show_bug.cgi?id=52376

As can be seen in the test code fixed in https://reviews.llvm.org/D113438 we
are emitting aranges for 2 separate "address spaces": data in linear memory,
and code as code section offsets. These could overlap and thus not make sense.

Since aranges does not accomodate for the concept of address spaces, the
easiest solution may be to only emit code offsets to aranges.

Aranges are being collected thru addArangeLabel in DwarfCompileUnit.cpp, and
thus some Wasm specific code filtering out data symbols may be required there?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to