1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/llvm-readobj
Petr Hosek 7c25606532 [llvm-readobj] Only print the real size of the note
Note payloads are padded to a multiple of 4 bytes in size, but the size
of the string that should be print can be smaller e.g. the n_descsz
field in gold's version note is 9, so that's the whole size of the
string that should be printed. The padding is part of the format of a
SHT_NOTE section or PT_NOTE segment, but it's not part of the note
itself.

Printing the extra null bytes may confuse some tools, e.g. when the
llvm-readobj is sent to grep, it treats the output as binary because
it contains a null byte.

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

llvm-svn: 299576
2017-04-05 18:55:50 +00:00
..
ARMEHABIPrinter.h
ARMWinEHPrinter.cpp
ARMWinEHPrinter.h
CMakeLists.txt [pdb] Add the ability to resolve TypeServer PDBs. 2017-02-16 23:35:45 +00:00
CodeView.h
COFFDumper.cpp [codeview] Cope with unsorted streams in type merging 2017-04-03 23:58:15 +00:00
COFFImportDumper.cpp
ELFDumper.cpp [llvm-readobj] Only print the real size of the note 2017-04-05 18:55:50 +00:00
Error.cpp
Error.h
llvm-readobj.cpp [PDB] Split item and type records when merging type streams 2017-03-24 17:26:38 +00:00
llvm-readobj.h
LLVMBuild.txt [pdb] Add the ability to resolve TypeServer PDBs. 2017-02-16 23:35:45 +00:00
MachODumper.cpp Add LC_BUILD_VERSION load command 2017-01-23 20:07:55 +00:00
ObjDumper.cpp
ObjDumper.h [PDB] Split item and type records when merging type streams 2017-03-24 17:26:38 +00:00
StackMapPrinter.h
WasmDumper.cpp [WebAssembly] Improve support for WebAssembly binary format 2017-03-30 19:44:09 +00:00
Win64EHDumper.cpp
Win64EHDumper.h