[all-commits] [llvm/llvm-project] aff75e: [lld][Wasm] Wasm-ld emits invalid .debug_ranges en...
Paolo Severini via All-commits
all-commits at lists.llvm.org
Thu Mar 26 14:28:15 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: aff75e1a1facbc6cc274070690ff3d725325c0f1
https://github.com/llvm/llvm-project/commit/aff75e1a1facbc6cc274070690ff3d725325c0f1
Author: Paolo Severini <paolosev at microsoft.com>
Date: 2020-03-26 (Thu, 26 Mar 2020)
Changed paths:
M lld/test/wasm/debug-removed-fn.ll
M lld/wasm/InputFiles.cpp
Log Message:
-----------
[lld][Wasm] Wasm-ld emits invalid .debug_ranges entries for non-live symbols
When the debug info contains a relocation against a dead symbol, wasm-ld
may emit spurious range-list terminator entries (entries with Start==0
and End==0). This change fixes this by emitting the WasmRelocation
Addend as End value for a non-live symbol.
Reviewed by: sbc100, dblaikie
Differential Revision: https://reviews.llvm.org/D74781
More information about the All-commits
mailing list