SuccessChanges

Summary

  1. [llvm-nm][MachO] Don't call getFlags on redacted symbols (details)
Commit 3d381a710220100722465ead9c64874621edead4 by francisvm
[llvm-nm][MachO] Don't call getFlags on redacted symbols

Avoid calling getFlags on a non-existent symbol.

The way this is triggered is by calling strip -N on a binary, which sets
the MH_NLIST_OUTOFSYNC_WITH_DYLDINFO header flag. Then, in the
LC_FUNCTION_STARTS command, nm is trying to print the stripped symbols
and needs the proper checks.
The file was modifiedllvm/tools/llvm-nm/llvm-nm.cpp (diff)
The file was addedllvm/test/tools/llvm-nm/AArch64/Inputs/redacted-function.macho-aarch64
The file was addedllvm/test/tools/llvm-nm/AArch64/macho-redacted-function.test