llvm-project/llvm/tools/llvm-objcopy
Julie Hockett 468722ee9f [objcopy] make objcopy follow program header standards
Submitted on behalf of Armando Montanez (amontanez@google.com).

Objects with unused program headers copied by objcopy would always have
nonzero values for program header offset and program header entry size.
While technically valid, this atypical behavior triggers warnings in some
tools. This change sets the two fields to zero when the program header is
unused, better fitting the general expectations for unused program header
data.

Section headers behaved somewhat similarly (though only with the entry size),
and are fixed in this revision as well.

Differential Revision: https://reviews.llvm.org/D51961

llvm-svn: 342065
2018-09-12 17:56:31 +00:00
..
CMakeLists.txt [tools] Introduce llvm-strip 2018-05-07 19:32:09 +00:00
LLVMBuild.txt Recommit "[llvm-objcopy] Switch over to using TableGen for parsing arguments" 2018-04-24 05:43:32 +00:00
ObjcopyOpts.td [llvm-objcopy] Dwarf .debug section compression support (zlib, zlib-gnu). 2018-09-07 08:10:22 +00:00
Object.cpp [objcopy] make objcopy follow program header standards 2018-09-12 17:56:31 +00:00
Object.h [llvm-objcopy] Dwarf .debug section compression support (zlib, zlib-gnu). 2018-09-07 08:10:22 +00:00
StripOpts.td [llvm-strip] Add support for -p/--preserve-dates 2018-08-16 18:29:40 +00:00
llvm-objcopy.cpp [llvm-objcopy] Dwarf .debug section compression support (zlib, zlib-gnu). 2018-09-07 08:10:22 +00:00
llvm-objcopy.h [NFC][llvm-objcopy] Cleanup namespace usage in llvm-objcopy. 2018-07-18 00:10:51 +00:00