llvm-mirror/test/tools/llvm-nm
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
..
ARM Change the test added in r293099 so it does not have the string "llvm-nm" to fix 2017-01-25 23:57:32 +00:00
wasm [WebAssembly] Use bitfield types in wasm YAML representation 2017-12-13 22:02:25 +00:00
X86 Do not look up symbol names when n_strx == 0 2018-01-03 23:28:32 +00:00
invalid-input.test Add the first of what will be a long line of additional error checks for invalid Mach-O files. 2016-08-05 18:19:40 +00:00
lit.local.cfg [WebAssembly] Improve readobj and nm support for wasm 2017-04-14 19:50:44 +00:00