[all-commits] [llvm/llvm-project] e0fb9f: [llvm-objdump] Fix alignment issues when dumping o...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Jul 8 11:30:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0fb9f55b63ce5a1d38bf2468b0593d8cca040dc
      https://github.com/llvm/llvm-project/commit/e0fb9f55b63ce5a1d38bf2468b0593d8cca040dc
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    A llvm/test/tools/llvm-objdump/Offloading/alignment.test
    M llvm/tools/llvm-objdump/OffloadDump.cpp

  Log Message:
  -----------
  [llvm-objdump] Fix alignment issues when dumping offloading sections

Summary:
The `.llvm.offloading` section should always be aligned by `8`. However,
we may want to show the offloading data stored in a static library. In
this case, even though the section's alignment is correct, the offset
inside the archive will result in the memory buffer being misaligned. TO
combat this we simply check if the buffer does not have the proper
alignment and copies it to a new buffer if not. This copy should have
the proper alignment.


  Commit: 7ecec30e43987f4851130fc08423ab23fec234a4
      https://github.com/llvm/llvm-project/commit/7ecec30e43987f4851130fc08423ab23fec234a4
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M clang/docs/ClangLinkerWrapper.rst

  Log Message:
  -----------
  [Clang][Docs] Update the clang-linker-wrapper documentation.


Compare: https://github.com/llvm/llvm-project/compare/22c7a6ddddec...7ecec30e4398


More information about the All-commits mailing list