llvm-project/lld/wasm
Sam Clegg cfeb646f80 [WebAssembly] Fix R_WEBASSEMBLY_FUNCTION_OFFSET_I32 relocation entries
Fixes: lld: warning: unexpected existing value for R_WEBASSEMBLY_FUNCTION_OFFSET_I32: existing=839 expected=838

The existing solution is trying to erroneously recover correct offset of
the function code from the body (which is not a function segment that
includes its size, locals, and code).

The D46763 is trying to maintain the offset of the function code
allowing properly calculate the new relocation entry.

Patch by Yury Delendik

Differential Revision: https://reviews.llvm.org/D46765

llvm-svn: 332412
2018-05-15 22:27:50 +00:00
..
CMakeLists.txt [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
Config.h [WebAssembly] Add a flag to control merging data segments 2018-05-10 18:23:51 +00:00
Driver.cpp [lld] Make helpers static. NFC. 2018-05-15 22:01:54 +00:00
InputChunks.cpp [lld] Make helpers static. NFC. 2018-05-15 22:01:54 +00:00
InputChunks.h [WebAssembly] Fix R_WEBASSEMBLY_FUNCTION_OFFSET_I32 relocation entries 2018-05-15 22:27:50 +00:00
InputFiles.cpp [WebAssembly] Fix R_WEBASSEMBLY_FUNCTION_OFFSET_I32 relocation entries 2018-05-15 22:27:50 +00:00
InputFiles.h [WebAssembly] Add support for debug (DWARF) sections 2018-05-04 23:14:42 +00:00
InputGlobal.h [WebAssembly] Implement -print-gc-sections, to better test GC of globals 2018-04-20 17:28:12 +00:00
MarkLive.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
MarkLive.h Consistent (non) use of empty lines in include blocks 2018-02-20 21:53:18 +00:00
Options.td [WebAssembly] Add a flag to control merging data segments 2018-05-10 18:23:51 +00:00
OutputSections.cpp [WebAssembly] Add support for debug (DWARF) sections 2018-05-04 23:14:42 +00:00
OutputSections.h [WebAssembly] Add support for debug (DWARF) sections 2018-05-04 23:14:42 +00:00
OutputSegment.h [WebAssembly] Remove another trivial accessor. 2018-04-05 19:37:31 +00:00
SymbolTable.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
SymbolTable.h [WebAssembly] Avoid COMDAT hashmap lookup for each symbol. NFC 2018-03-14 15:45:11 +00:00
Symbols.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
Symbols.h [WebAssembly] Update to match llvm changes 2018-05-14 22:42:33 +00:00
Writer.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
Writer.h
WriterUtils.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
WriterUtils.h [WebAssembly] Add export/import for function pointer table 2018-03-27 17:38:51 +00:00