[all-commits] [llvm/llvm-project] fb8557: Fix PDB relocation on big-endian hosts

Ulrich Weigand via All-commits all-commits at lists.llvm.org
Thu Apr 27 08:48:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb8557813afd41e09b4ba20091adf6b803967112
      https://github.com/llvm/llvm-project/commit/fb8557813afd41e09b4ba20091adf6b803967112
  Author: Ulrich Weigand <ulrich.weigand at de.ibm.com>
  Date:   2023-04-27 (Thu, 27 Apr 2023)

  Changed paths:
    M lld/COFF/PDB.cpp

  Log Message:
  -----------
  Fix PDB relocation on big-endian hosts

When running the LLD test suite on a big-endian host, the
COFF/pdb-framedata.yaml test case currently fails.

As it turns out, this is because code in DebugSHandler::finish
intended to relocate RvaStart entries of FDO records does not
work correctly when compiled for a big-endian host.

Fixed by always reading file data in little-endian mode.

Reviewed By: aganea

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




More information about the All-commits mailing list