[PATCH] D47238: [WebAssembly] Fix crash when relocation synbol is not live

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 17:53:43 PDT 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, JDevlieghere, sunfish, aheejin, jgravelle-google, aprantl, dschuff.

When a symbol is GC'd it can still be references by relocations
in the debug sections, but such symbols are not assigned virtual
addresses.

This change adds a new global data symbol which gets gc'd but
should still appears in the output debug info, albeit with a 0
address.

Fixes 37555


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D47238

Files:
  test/wasm/Inputs/debuginfo1.ll
  test/wasm/Inputs/debuginfo2.ll
  test/wasm/debuginfo.test
  wasm/InputFiles.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47238.148137.patch
Type: text/x-patch
Size: 8721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180523/f83656ef/attachment.bin>


More information about the llvm-commits mailing list