[all-commits] [llvm/llvm-project] 94baaa: [llvm-readobj][COFF] Print load config GuardFlags ...

alvinhochun via All-commits all-commits at lists.llvm.org
Wed Aug 31 05:13:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94baaa6a5c7b44fedcc57e6abc710f45c4b004a0
      https://github.com/llvm/llvm-project/commit/94baaa6a5c7b44fedcc57e6abc710f45c4b004a0
  Author: Alvin Wong <alvin at alvinhc.com>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M lld/test/COFF/gfids-corrupt.s
    M lld/test/COFF/gfids-fallback.s
    M lld/test/COFF/gfids-gc.s
    M lld/test/COFF/gfids-icf.s
    M lld/test/COFF/giats.s
    M lld/test/COFF/guard-ehcont.s
    M lld/test/COFF/guard-longjmp.s
    M lld/test/COFF/guardcf-lto.ll
    M llvm/include/llvm/BinaryFormat/COFF.h
    M llvm/test/tools/llvm-readobj/COFF/load-config.test
    M llvm/tools/llvm-readobj/COFFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj][COFF] Print load config GuardFlags as enum flags

Print flags as documented in MS docs.
https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#load-configuration-layout
https://docs.microsoft.com/en-us/windows/win32/secbp/pe-metadata

EH_CONTINUATION_TABLE_PRESENT is not mentioned in the docs but is
instead taken from Windows SDK headers.

Reviewed By: rnk

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


  Commit: 12d865415ff3b9c95eaf3b3d92258d7ef77d2e76
      https://github.com/llvm/llvm-project/commit/12d865415ff3b9c95eaf3b3d92258d7ef77d2e76
  Author: Alvin Wong <alvin at alvinhc.com>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M lld/COFF/Writer.cpp
    M llvm/include/llvm/Object/COFF.h
    M llvm/tools/llvm-readobj/COFFDumper.cpp

  Log Message:
  -----------
  [COFF] Use the more accurate GuardFlags definition everywhere

This also modifies llvm-readobj to be more future-proof when printing
the guard FIDs table by calculating the entry size correctly according
to MS docs.

Reviewed By: rnk

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


Compare: https://github.com/llvm/llvm-project/compare/ce4c7a987fa3...12d865415ff3


More information about the All-commits mailing list