[llvm-bugs] [Bug 48827] New: older versions of wasm-ld crashes when when given object files built with llvm trunk
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 20 19:19:56 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48827
Bug ID: 48827
Summary: older versions of wasm-ld crashes when when given
object files built with llvm trunk
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: wasm
Assignee: unassignedbugs at nondot.org
Reporter: sbc at chromium.org
CC: llvm-bugs at lists.llvm.org, sbc at chromium.org
We ran into issues where object files built with trunk version llvm were
causing crashes in older versions of wasm-ld.
I believe that this change added a new symbol type to pretty much all object
files which causes older versions of wasm-ld to crash:
https://reviews.llvm.org/D92215
Clearly we need to be able add new symbol types and relocations types I think
we can take a couple of measures here to make things smoother:
1. Report readable errors rather than crashing when new symbol types or
relocation types are added.
2. In this particular case we should avoid using this new symbol type unless we
truly need it. i.e. we should revisit the discussion around whether to use a
table symbol for the default call_indirect table.
WDYT andy? I can take a look at (1) but thats the easy bit. Revisiting (2)
could be trickier? I guess it will make the code less clean for longer but
avoiding breaking changes to the object format is also very compelling.
--
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/20210121/5617235d/attachment.html>
More information about the llvm-bugs
mailing list