llvm-mirror/test
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
..
Analysis Fix tests after move to utohexstr. 2017-12-28 17:00:37 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [DAGCombine] Handle out of range EXTRACT_VECTOR_ELT indices 2018-01-03 22:42:33 +00:00
DebugInfo [AArch64][GlobalISel] Enable GlobalISel at -O0 by default 2018-01-02 16:30:47 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [hwasan] Implement -fsanitize-recover=hwaddress. 2017-12-20 19:05:44 +00:00
Integer
JitListener
Linker
LTO [LTO] Make processing of combined module more consistent 2017-12-16 02:10:00 +00:00
MC [MC] - Stop ignoring invalid meta data symbols. 2017-12-31 07:41:02 +00:00
Object
ObjectYAML [WebAssembly] Add support for init functions linking metadata 2017-12-14 21:10:03 +00:00
Other [PM] pass -debug-pass-manager flag into FunctionToLoopPassAdaptor's canonicalization PM 2017-12-29 08:16:06 +00:00
SafepointIRVerifier [SafepointIRVerifier] Allow non-dereferencing uses of unrelocated or poisoned PHI nodes 2017-12-25 09:35:10 +00:00
SymbolRewriter
TableGen TableGen: Allow setting SDNodeProperties on intrinsics 2017-12-20 19:36:28 +00:00
ThinLTO/X86 [ThinLTO] Don't import functions with noinline attribute 2017-12-25 13:57:24 +00:00
tools Do not look up symbol names when n_strx == 0 2018-01-03 23:28:32 +00:00
Transforms [PRE] Add a bunch of test cases for LICM-like PRE patterns 2018-01-03 22:28:26 +00:00
Unit
Verifier [Verifier] Check that GEP indexes has correct types 2017-12-14 09:33:58 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh