COFF: Define symbols for MSVC 2015 Control Flow Protection.
MSVC 2015's load configuration object (__load_config_used) contains references to these symbols. I don't fully understand how it works, but looks like these symbols are linker-defined ones. So I define them here in the Driver. With this patch, LLD can self-host with MSVC 2015. This patch is to link MSVC 2015-produced object files. It does not implement Control Flow Protection. If I understand correctly, the linker has to create a bitmap of function entry point addresses for the CFG runtime. We don't do that yet. Produced executables will not be protected by CFG. llvm-svn: 244425
Loading
Please register or sign in to comment