[all-commits] [llvm/llvm-project] 4d54c6: [llvm-objcopy][MachO] Fix adding multiple sections

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Sat Nov 7 18:19:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d54c6fc5ad5653afbded1d8fedbe2423dbb7233
      https://github.com/llvm/llvm-project/commit/4d54c6fc5ad5653afbded1d8fedbe2423dbb7233
  Author: Cornelius Aschermann <eqv at fb.com>
  Date:   2020-11-07 (Sat, 07 Nov 2020)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/MachO/add-multiple-sections.test
    M llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
    M llvm/tools/llvm-objcopy/MachO/Object.cpp
    M llvm/tools/llvm-objcopy/MachO/Object.h

  Log Message:
  -----------
  [llvm-objcopy][MachO] Fix adding multiple sections

This diff fixes missing fields initialization (Size, VMSize).
Previously this resulted in broken binaries when multiple sections
were added in one tool's invocatation.

Test plan: make check-all

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




More information about the All-commits mailing list