commit | 9801ba63f0909d0b0b8799d7432b9676d8b5e294 | [log] [tgz] |
---|---|---|
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | Fri Dec 04 20:10:06 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Dec 08 18:16:40 2020 -0800 |
tree | 9a20bb4f5e1a36298bc730c18f9571c9b82bf86d | |
parent | 0a324170f0ff458797988de47a6016de1bdee901 [diff] |
[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. GitOrigin-RevId: 3d381a710220100722465ead9c64874621edead4