evgeny777 added a comment. How about making a symlink nm -> llvm_nm and use different behavior depending on tool name? The same approach is used by llvm-addr2line, AFAIR. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60502/new/ https://reviews.llvm.org/D60502