1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Object
Michael Trent dfb4d861ce Do not look up symbol names when n_strx == 0
Summary:
Historical tools for working with mach-o binaries verify the nlist field
n_strx has a non-zero value before using that value to retrieve symbol names.
Under some cirumstances, llvm-nm will attempt to display the symbol name at 
position 0, even though symbol names at that position are not well defined. 
This change addresses this problem by returning an empty string when n_strx
is zero.

rdar://problem/35750548

Reviewers: enderby, davide

Reviewed By: enderby, davide

Subscribers: davide, llvm-commits, JDevlieghere

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

llvm-svn: 321773
2018-01-03 23:28:32 +00:00
..
Archive.cpp Make 32-bit member offset in Archive::Symbol::getMember 64-bit 2017-10-27 21:47:38 +00:00
ArchiveWriter.cpp Add flag to ArchiveWriter to test GNU64 format more efficiently 2017-12-01 00:54:28 +00:00
Binary.cpp
CMakeLists.txt
COFFImportFile.cpp Fixed the gcc 'enumeral and non-enumeral type in conditional expression [-Werror=extra]' warning introduced by r320750 2017-12-15 22:15:29 +00:00
COFFModuleDefinition.cpp [COFF] Ignore semicolons in module definition identifiers 2017-12-06 19:18:24 +00:00
COFFObjectFile.cpp Fix many -Wsign-compare and -Wtautological-constant-compare warnings. 2017-12-14 22:07:03 +00:00
Decompressor.cpp Revert "[Decompression] Fail gracefully when out of memory" 2017-09-05 22:04:00 +00:00
ELF.cpp Silence a bunch of implicit fallthrough warnings 2017-12-19 22:05:25 +00:00
ELFObjectFile.cpp Make the ELFObjectFile constructor private. 2017-10-10 21:21:16 +00:00
Error.cpp Revert "[ADT] Make Twine's copy constructor private." 2017-10-11 23:54:34 +00:00
IRObjectFile.cpp Remove redundant includes from lib/Object. 2017-12-13 21:30:55 +00:00
IRSymtab.cpp Object: Improve COFF irsymtab comdat representation. 2017-11-21 22:06:20 +00:00
LLVMBuild.txt
MachOObjectFile.cpp Do not look up symbol names when n_strx == 0 2018-01-03 23:28:32 +00:00
MachOUniversal.cpp
ModuleSymbolTable.cpp
Object.cpp
ObjectFile.cpp Convert two uses of ErrorOr to Expected. 2017-10-10 20:00:07 +00:00
RecordStreamer.cpp
RecordStreamer.h
SymbolicFile.cpp Convert the last uses of ErrorOr in include/llvm/Object. 2017-10-11 18:07:18 +00:00
SymbolSize.cpp
WasmObjectFile.cpp [WebAssembly] Remove unneeded sub-directory 2017-12-21 03:16:34 +00:00
WindowsResource.cpp Fix buffer overrun in WindowsResourceCOFFWriter::writeSymbolTable() 2017-12-18 22:10:14 +00:00