[all-commits] [llvm/llvm-project] 2c663a: [llvm-objcopy][MachO] Fix segment size alignment

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Mon Jun 29 23:57:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c663aa539c3c378599776f4a6849f1cbee5fb93
      https://github.com/llvm/llvm-project/commit/2c663aa539c3c378599776f4a6849f1cbee5fb93
  Author: Alexander Shaposhnikov <alexshap at fb.com>
  Date:   2020-06-29 (Mon, 29 Jun 2020)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/MachO/segment-size-alignment.test
    M llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp

  Log Message:
  -----------
  [llvm-objcopy][MachO] Fix segment size alignment

This diff addresses the old TODO in MachOObjcopy.cpp and
correctly sets the page size used for alignment of segments.
In particular, now llvm-objcopy's output is consistent
with the input (the alignment of vmsize doesn't change).

Test plan:

1. make check-all
2. verify that a binary copied via llvm-objcopy now correctly works on iOS.

Differential revision: https://reviews.llvm.org/D82503




More information about the All-commits mailing list