summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/undefined-data.ll
Commit message (Collapse)AuthorAgeFilesLines
* [lld][WebAssembly] Report undefined symbols during scanRelocationsSam Clegg2019-07-091-2/+1
| | | | | | | | | | | | | | | | This puts handling of undefined symbols in a single location. Its also more in line with the ELF backend which only reports undefined symbols based on relocations. One side effect is that we no longer report undefined symbols that are only referenced in GC'd sections. This also fixes a crash reported in the emscripten toolchain: https://github.com/emscripten-core/emscripten/issues/8930. Differential Revision: https://reviews.llvm.org/D64280 llvm-svn: 365553
* [lld][WebAssembly] Fix typo in error messageSam Clegg2019-07-081-3/+3
| | | | | | Differential Revision: https://reviews.llvm.org/D64315 llvm-svn: 365304
* [WebAssembly] Error on relocations against undefined data symbols.Sam Clegg2019-04-221-2/+4
| | | | | | | | | | | | | | | | | We can't (currently) meaningfully resolve certain types of relocations against undefined data symbols. Previously when `--allow-undefined` was used we were treating such relocation much like weak data symbols and simply inserting zeros. This change turns such use cases in to an error. This means that `--allow-undefined` is no longer effective for data symbols. Fixes https://bugs.llvm.org/show_bug.cgi?id=40364 Differential Revision: https://reviews.llvm.org/D60882 llvm-svn: 358899
* [WebAssembly] Apply data relocations at runtime in shared objectsSam Clegg2019-04-041-1/+1
| | | | | | | | | | | | | See: https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md Data section relocations in wasm shared libraries are applied by the library itself at static constructor time. This change adds a new synthetic function that applies relocations to relevant memory locations on startup. Differential Revision: https://reviews.llvm.org/D59278 llvm-svn: 357715
* Re-land "[WebAssembly] Improve invalid relocation error message""Sam Clegg2019-03-291-1/+1
| | | | | | | | | | See https://reviews.llvm.org/D59860 The initial version of this change effected more than just the error message. This version is scoped down to only effect the error itself. llvm-svn: 357328
* Revert "[WebAssembly] Improve invalid relocation error message"Derek Schuff2019-03-291-1/+1
| | | | | | This reverts commit 0805ec5f7b5c80474352531a99e721c30e73e77f. llvm-svn: 357225
* [WebAssembly] Improve invalid relocation error messageSam Clegg2019-03-281-1/+1
| | | | | | | | This message now matches the equivalent message in the ELF linker. Differential Revision: https://reviews.llvm.org/D59860 llvm-svn: 357143
* [WebAssembly] Error on R_WASM_MEMORY_ADDR relocations against undefined data ↵Sam Clegg2019-03-161-0/+16
symbols. For these types of relocations an absolute memory address is required which is not possible for undefined data symbols. For symbols that can be undefined at link time (i.e. external data symbols in shared libraries) a different type of relocation (i.e. via a GOT) will be needed. Differential Revision: https://reviews.llvm.org/D59337 llvm-svn: 356310
OpenPOWER on IntegriCloud