aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-07-06 01:04:12 +0300
committerMartin Storsjö <martin@martin.st>2023-07-11 23:43:34 +0300
commit6daa4b90e28ef4789ae0eb3163c6770c110d3a28 (patch)
tree607be1c3587d096c64c293f6fc4eb6235d0fad98 /clang/lib/Frontend/TestModuleFileExtension.cpp
parent1776dc81240cab4e365d55bc720b552823697081 (diff)
downloadllvm-6daa4b90e28ef4789ae0eb3163c6770c110d3a28.zip
llvm-6daa4b90e28ef4789ae0eb3163c6770c110d3a28.tar.gz
llvm-6daa4b90e28ef4789ae0eb3163c6770c110d3a28.tar.bz2
[LLD] [COFF] Warn about pseudo relocations that are too narrow
In 64 bit mode, any references to symbols that might end up autoimported must be made via full 64 bit pointers (usually in .refptr stubs generated by the compiler). If referenced via e.g. a 32 bit rip relative offset, it might work as long as DLLs are loaded close together in the 64 bit address space, but will fail surprisingly later if they happen to be loaded further apart. Any cases of that happening is usually a toolchain error, and the sooner we can warn about it, the easier it is to diagnose. Differential Revision: https://reviews.llvm.org/D154777
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions