[all-commits] [llvm/llvm-project] 2397f6: [Object] Skip section offset checking for /<XFGHAS...

Pavel Samolysov via All-commits all-commits at lists.llvm.org
Wed Mar 2 03:29:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2397f67166156b73749e11ef1947fa34d5dbd4f7
      https://github.com/llvm/llvm-project/commit/2397f67166156b73749e11ef1947fa34d5dbd4f7
  Author: Pavel Samolysov <pavel.samolysov at intel.com>
  Date:   2022-03-02 (Wed, 02 Mar 2022)

  Changed paths:
    M llvm/lib/Object/Archive.cpp
    A llvm/test/tools/llvm-lib/xfghashmap-list.test

  Log Message:
  -----------
  [Object] Skip section offset checking for /<XFGHASHMAP>/

Starting from Windows SDK for Windows 11 (10.0.22000.x), all the system
libraries (.lib files) contain a section with the '/<XFGHASHMAP>/' name.
This looks like the libraries are built with control flow guard enabled:
https://docs.microsoft.com/en-us/cpp/build/reference/guard-enable-control-flow-guard?view=msvc-170

To let the LLVM tools (llvm-ar, llvm-lib) work with these libraries,
this patch just skips the section offset check for sections with the
'/<XFGHASHMAP>/' name.

Closes: llvm/llvm-project#53814

Signed-off-by: Pavel Samolysov <pavel.samolysov at intel.com>

Reviewed By: jhenderson, thieta

Differential Revision: https://reviews.llvm.org/D120645




More information about the All-commits mailing list