https://github.com/llvm/llvm-project/blob/de32a3df354f1d01c0a5c81285ac786cea9d8bdf/llvm/tools/llvm-nm/llvm-nm.cpp#L1267


Llvm-nm may get stuck for a long time when reading some mach-o files and cannot return. 

After my debugging, I found that it got stuck in the code above. Got big two for loops

<img width="1298" alt="image" src="https://github.com/llvm/llvm-project/assets/1732749/cb8c7dfd-d229-4f0d-a75a-1e89f5a7c33b">

llvm-nm take too long time when HFlags & MH_NLIST_OUTOFSYNC_WITH_DYLDINFO
This is a GitHub Issue
repo:llvm-project
owner:llvm
Title : llvm-nm take too long time when HFlags & MH_NLIST_OUTOFSYNC_WITH_DYLDINFO
Issue date:

--- start body ---
https://github.com/llvm/llvm-project/blob/de32a3df354f1d01c0a5c81285ac786cea9d8bdf/llvm/tools/llvm-nm/llvm-nm.cpp#L1267


Llvm-nm may get stuck for a long time when reading some mach-o files and cannot return. 

After my debugging, I found that it got stuck in the code above. Got big two for loops

<img width="1298" alt="image" src="https://github.com/llvm/llvm-project/assets/1732749/cb8c7dfd-d229-4f0d-a75a-1e89f5a7c33b">

--- end body ---
