[llvm-bugs] [Bug 35383] WASM backend fails on aliased symbols

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 1 04:11:21 PST 2017


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

Nicholas Wilson <ncw at realvnc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |ncw at realvnc.com
             Status|NEW                         |RESOLVED

--- Comment #3 from Nicholas Wilson <ncw at realvnc.com> ---
I've worked it out - it's INVALID, my bad.

I was confused because the ".o" Wasm files don't appear right. Indeed they're
not right, what I hadn't realised is that relocations are used to clear up the
problem at link time. I hadn't realised that all function indices in Wasm refer
to the same index space, so a single-index relocation is able to redirect a
call between exported/imported/defined functions.

There *is* still a problem with weak symbols causing duplicate names to be
written out, as illustrated by the following testcase, but I'll sort that in
another review request.

-- 
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/20171201/5d465902/attachment.html>


More information about the llvm-bugs mailing list