aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2021-02-07 18:51:42 -0800
committerSam Clegg <sbc@chromium.org>2021-02-08 16:56:57 -0800
commit01a48535c31169461d4eedddb48c00b79277f388 (patch)
tree0709a465c5e43b72c5c01e1178735a19bce5f841 /clang/lib/Frontend/CompilerInvocation.cpp
parent622611f7e5b2c42ad3c34aec4a77a82adf6d9e36 (diff)
downloadllvm-01a48535c31169461d4eedddb48c00b79277f388.zip
llvm-01a48535c31169461d4eedddb48c00b79277f388.tar.gz
llvm-01a48535c31169461d4eedddb48c00b79277f388.tar.bz2
[MC][WebAssembly] Fix provisional values for data alias relocations
When calculating the symbol offsets to write as provisitonal values in object files we are only interested in the offset of the symbol itself. For aliases this offset already includes the offset of the base symbol. The testin question was added back in https://reviews.llvm.org/D87407 but I believe the expectations here were incorrect. sym_a lives at offset 4 and sym_b lives 4 bytes into that (should be 8). The addresses of the 3 symbosl in this object file are: foo : 0 sym_a: 4 sym_b: 8 Differential Revision: https://reviews.llvm.org/D96234
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions