[PATCH] D120645: [Object] Skip section offset checking for /<XFGHASHMAP>/
    James Henderson via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Feb 28 07:21:26 PST 2022
    
    
  
jhenderson added a comment.
In D120645#3348913 <https://reviews.llvm.org/D120645#3348913>, @psamolysov-intel wrote:
> Unfortunately, I have no idea how to create a library with the /<XFGHASHMAP>/ section. I'm trying to use /guard:cf directive for the compiler as well as for the linker with VS 2019 and 2022 but the generated library contains no such section. I've seen such section only in the standard libraries shipped with Microsoft Windows SDK for Windows 11 but (Kernel32.Lib, for example), as I understand, we cannot attach a 3rd party (Microsoft in this case) library to our project. I tried to create a DLL and interface library for it with a dependency from another DLL or a DLL that contain the DllMain entry point, no success. Any help is welcome.
I'm not really familiar with the Windows lib format, but in traditional GNU archives, you can basically just concatenate a new archive member to the end of an existing archive and it'll just work. If that works for Windows libs too, you could do that using python, maybe?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120645/new/
https://reviews.llvm.org/D120645
    
    
More information about the llvm-commits
mailing list