[all-commits] [llvm/llvm-project] 239fcd: [llvm-readobj] [COFF] Cope with debug directory pa...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Wed Apr 29 10:57:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 239fcda22deef2e36b36a17a310d9eb48b1794d8
      https://github.com/llvm/llvm-project/commit/239fcda22deef2e36b36a17a310d9eb48b1794d8
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-04-29 (Wed, 29 Apr 2020)

  Changed paths:
    A llvm/test/tools/llvm-readobj/COFF/debug-directory-unmapped.test
    M llvm/tools/llvm-readobj/COFFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] [COFF] Cope with debug directory payloads in unmapped areas

According to the spec, the payload for debug directories can be
in parts of the binary that aren't mapped at runtime - in these
cases, AddressOfRawData is just set to zero.

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


  Commit: 23e35f7c88549de8c76ee5b0643ce5116062563c
      https://github.com/llvm/llvm-project/commit/23e35f7c88549de8c76ee5b0643ce5116062563c
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-04-29 (Wed, 29 Apr 2020)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/COFF/debug-dir-unmapped.test
    A llvm/test/tools/llvm-objcopy/COFF/patch-debug-dir2.test
    M llvm/tools/llvm-objcopy/COFF/Writer.cpp
    M llvm/tools/llvm-objcopy/COFF/Writer.h

  Log Message:
  -----------
  [llvm-objcopy] [COFF] Fix a misconception about debug directory payloads

The debug directory payload is not located directly after the
debug directory entry itself, but can essentially be located anywhere
in the binary (even outside of mapped sections, although we don't
handle that case).

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


  Commit: a0e53de472c5b9538884f23eb8f47c3bc734b345
      https://github.com/llvm/llvm-project/commit/a0e53de472c5b9538884f23eb8f47c3bc734b345
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-04-29 (Wed, 29 Apr 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/MinGW.cpp

  Log Message:
  -----------
  [clang] [MinGW] Add the compiler rt libdirs to the search path

This matches what is done for MSVC in
b8000c0ce84541c5b5535419234fb65ce77d6756. Since that commit, compiler
rt sanitizer libraries aren't linked to with absolute path on windows,
but using their basenames, requiring the libdirs to be passed to
the linker.

This fixes undefined behaviour sanitizer on MinGW after
b8000c0ce84541c5b5535419234fb65ce77d6756.

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


Compare: https://github.com/llvm/llvm-project/compare/c7878ad231ee...a0e53de472c5


More information about the All-commits mailing list