[all-commits] [llvm/llvm-project] 3a293c: [WebAssembly] Fix PIC/GOT codegen for wasm64
Wouter van Oortmerssen via All-commits
all-commits at lists.llvm.org
Thu May 20 10:02:08 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a293cbf13a2b6ddb2c1f6d27077ee922f32c404
https://github.com/llvm/llvm-project/commit/3a293cbf13a2b6ddb2c1f6d27077ee922f32c404
Author: Wouter van Oortmerssen <aardappel at gmail.com>
Date: 2021-05-20 (Thu, 20 May 2021)
Changed paths:
M lld/test/wasm/data-layout.s
A lld/test/wasm/shared64.s
M lld/wasm/Driver.cpp
M lld/wasm/InputChunks.cpp
M lld/wasm/InputElement.h
M lld/wasm/InputFiles.cpp
M lld/wasm/OutputSections.cpp
M lld/wasm/Relocations.cpp
M lld/wasm/Symbols.cpp
M lld/wasm/Symbols.h
M lld/wasm/SyntheticSections.cpp
M lld/wasm/Writer.cpp
M llvm/include/llvm/BinaryFormat/WasmRelocs.def
M llvm/lib/MC/WasmObjectWriter.cpp
M llvm/lib/Object/WasmObjectFile.cpp
M llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
A llvm/test/MC/WebAssembly/reloc-pic64.s
Log Message:
-----------
[WebAssembly] Fix PIC/GOT codegen for wasm64
__table_base is know 64-bit, since in LLVM it represents a function pointer offset
__table_base32 is a copy in wasm32 for use in elem init expr, since no truncation may be used there.
New reloc R_WASM_TABLE_INDEX_REL_SLEB64 added
Differential Revision: https://reviews.llvm.org/D101784
More information about the All-commits
mailing list