[all-commits] [llvm/llvm-project] cf7edb: [llvm-objcopy][MachO] Avoid accidental invalid rel...

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Mon Apr 27 15:33:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cf7edb6ea507949ce859510970698c9c11887d98
      https://github.com/llvm/llvm-project/commit/cf7edb6ea507949ce859510970698c9c11887d98
  Author: Alexander Shaposhnikov <alexshap at fb.com>
  Date:   2020-04-27 (Mon, 27 Apr 2020)

  Changed paths:
    M llvm/test/tools/llvm-objcopy/MachO/Inputs/strip-all-with-dwarf.yaml
    M llvm/test/tools/llvm-objcopy/MachO/basic-big-endian-32-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-big-endian-64-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-little-endian-32-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-little-endian-64-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/strip-debug.test

  Log Message:
  -----------
  [llvm-objcopy][MachO] Avoid accidental invalid relocations in tests

Until recently yaml2obj didn't properly support relocations for MachO.
This behavior resulted in binaries having invalid relocations.
In this diff we adjust the existing tests as follows:
for the tests which don't actually look at any relocations they are removed,
for the tests which essentially depend on relocations they are fixed.

Test plan: make check-all

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




More information about the All-commits mailing list