1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/tools/llvm-nm
Kevin Enderby a0fc9b0eaa Fix a crash in llvm-nm for a bad Mach-O file that has an N_SECT type symbol and a zero n_sect value.
The code in llvm-nm for Mach-O files to determine the section type for an
N_SECT type symbol it will call getSymbolSection() and check for the error,
but in the case the n_sect value is zero it will return section_end() (aka nullptr).
And the code was using that and crashing instead of just returning a ’s’ for a
section or printing (?,?) as it would if getSymbolSection() returned an error.

rdar://33136604

llvm-svn: 313193
2017-09-13 21:01:49 +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] Only treat imports/exports as symbols when reading relocatable object files 2017-09-06 22:05:41 +00:00
X86 Fix a crash in llvm-nm for a bad Mach-O file that has an N_SECT type symbol and a zero n_sect value. 2017-09-13 21:01:49 +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