[all-commits] [llvm/llvm-project] 5b46dc: [llvm-dwp] Fix endianness issues (#203424)

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Thu Jul 16 13:11:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b46dcf59375181dee1fbd6e1d1cdb3f0c8f5289
      https://github.com/llvm/llvm-project/commit/5b46dcf59375181dee1fbd6e1d1cdb3f0c8f5289
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M llvm/include/llvm/DWP/DWP.h
    M llvm/lib/DWP/DWP.cpp
    A llvm/test/tools/llvm-dwp/SystemZ/big_endian_info_v5.s
    M llvm/test/tools/llvm-dwp/X86/compress.test

  Log Message:
  -----------
  [llvm-dwp] Fix endianness issues (#203424)

llvm-dwp fails on SystemZ, which is big-endian, as follows:

    $ cat min.c
    int main() {}
    $ clang -g -O0 -gsplit-dwarf min.c -o min
    $ llvm-dwp -e min -o min.dwp
error: compile unit exceeds .debug_info section range: 905969668 >= 58

This is because it hardcodes IsLittleEndian=true in multiple places. Fix
by forwarding endianness of the current object file.

Add a SystemZ-specific test.

Add proper big-endian support to X86/compress.test and add an
explanation regarding what the hardcoded blobs are and how they are
generated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list