commit | ee981ac8996577d688e639bfbae9777bc342ca7c | [log] [tgz] |
---|---|---|
author | Sam Clegg <sbc@chromium.org> | Wed Dec 01 18:10:37 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Dec 02 08:45:58 2021 -0800 |
tree | 67910c0f3f2bfedf685ca38047790494840e9cc0 | |
parent | 59a15a6399986a359d16109b202f50b30b5c859e [diff] |
[lld][WebAssembly] Fix for debug relocations against undefined function symbols This is very similar to https://reviews.llvm.org/D103557 but applies to symbols which are undefined at link time rather than compile time. We already have code that handles symbols which were defined at link time but dead stripped by `--gc-sections` (See `test/wasm/debug-removed-fn.ll`). In that case the symbols are not live (!isLive()). However, we can also have live symbols (which are references by the program) but which are undefined at link time and are imported by the linker. In the test case here the symbol `undef` is used but is not defined in the program but is imported by the linker due to the `--import-undefined` flag. Fixes: https://github.com/emscripten-core/emscripten/issues/15528 Differential Revision: https://reviews.llvm.org/D114921 GitOrigin-RevId: 6f5c5cbe5f8209de3f4d91de75d7f3a716e9f131
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f
.