summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ProcessImplicitDefs.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-05-25 18:03:34 +0000
committerRui Ueyama <ruiu@google.com>2017-05-25 18:03:34 +0000
commit69ae29b1d1da5368c1a49ef092e43b9877472be0 (patch)
treeed9c7add01c3e57adfc32bb904e9d33b52f90496 /llvm/lib/CodeGen/ProcessImplicitDefs.cpp
parentb4f3924dd549aded4d5e154db46bcf448465f306 (diff)
downloadbcm5719-llvm-69ae29b1d1da5368c1a49ef092e43b9877472be0.tar.gz
bcm5719-llvm-69ae29b1d1da5368c1a49ef092e43b9877472be0.zip
Do not allow delay-importing data symbols.
If you pass /delayload:<dllname> to the COFF linker, it creates thunks so that DLLs are loaded when they are used for the first time instead of load-time. This mechanism do not work for data symbols as there's no way to trap acccesses to data imported from DLLs. (Technically, I think if we do not initially map dllimport tables in memory, we could actually trap accesses and delay-load data symbols, but that's not what Windows do.) This patch is to report an error when you try to delay-load data symbols. Fixes https://bugs.llvm.org/show_bug.cgi?id=33106 Differential Revision: https://reviews.llvm.org/D33557 llvm-svn: 303890
Diffstat (limited to 'llvm/lib/CodeGen/ProcessImplicitDefs.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud