[PATCH] D92215: [WebAssembly] MC layer writes table symbols to object files

dmajor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 22 13:01:27 PST 2021


dmajor added a comment.

In D92215#2506002 <https://reviews.llvm.org/D92215#2506002>, @wingo wrote:

> Yeah as @sbc100 says, this is intended -- object files now can have table symbols, and if the compilation unit takes the address of a function or makes an indirect call, it will have a `__indirect_function_table` symbol.  So the expectations need updating; sorry for the bother!

Looks like this `grep -v` would be a good place: https://github.com/WebAssembly/wasi-libc/blob/378fd4b21aab6d390f3a1c1817d53c422ad00a62/Makefile#L452

I've locally changed that to `"^__mul\|^__indirect_function_table"` and it's been working fine for the past few days.

@sbc100, I see that you're a project contributor, would you mind landing that to /wasi-libc and /wasi-sdk? I'm also happy to send a pair of PRs but I don't have my account handy this week.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92215/new/

https://reviews.llvm.org/D92215



More information about the llvm-commits mailing list