HomePhabricator

[llvm-objcopy][MachO] Skip sections with zero offset

Authored by alexshap on Nov 6 2020, 1:10 PM.

Description

[llvm-objcopy][MachO] Skip sections with zero offset

Some binaries can contain regular sections with zero offset and zero size.
This diff makes llvm-objcopy's handling of such sections consistent with
cctools's strip (which doesn't modify them),
previously the tool would allocate file space for them.

Test plan: make check-all

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

Details

Committed
alexshapNov 6 2020, 1:29 PM
Differential Revision
Restricted Differential Revision
Parents
rG2993850237b0: [debuginfo-tests] Skip optnone-loops.cpp on Darwin
Branches
Unknown
Tags
Unknown

Event Timeline

alexshap added an edge: Restricted Differential Revision.