diff --git a/bolt/test/link_fdata.py b/bolt/test/link_fdata.py index f1d83458346d6..bcf9a777922d5 100755 --- a/bolt/test/link_fdata.py +++ b/bolt/test/link_fdata.py @@ -9,6 +9,7 @@ import argparse import os +import shutil import subprocess import sys import re @@ -85,7 +86,7 @@ exit("ERROR: unexpected input:\n%s" % line) # Read nm output: -is_llvm_nm = os.path.basename(args.nmtool) == "llvm-nm" +is_llvm_nm = os.path.basename(os.path.realpath(shutil.which(args.nmtool))) == "llvm-nm" nm_output = subprocess.run( [ args.nmtool,