From 6f43f54264695161150a7c1497545c6d068eb07b Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Sat, 3 Apr 2021 03:20:12 +0800 Subject: [PATCH] Fix toc.sh, llvm-nm does not recognise '-f P' option llvm-nm only accepts full name for format option, or just '-P' alias. Test: build Bug: 184360305 Change-Id: Ie25f5410403f4dbca564430149a5753e0d48d60d --- scripts/toc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/toc.sh b/scripts/toc.sh index af8bece94..c6b78668c 100755 --- a/scripts/toc.sh +++ b/scripts/toc.sh @@ -57,7 +57,7 @@ EOF do_pe() { "${CLANG_BIN}/llvm-objdump" -x "${infile}" | grep "^Name" | cut -f3 -d" " > "${outfile}.tmp" - "${CLANG_BIN}/llvm-nm" -g -f p "${infile}" | cut -f1-2 -d" " >> "${outfile}.tmp" + "${CLANG_BIN}/llvm-nm" -gP "${infile}" | cut -f1-2 -d" " >> "${outfile}.tmp" cat < "${depsfile}" ${outfile}: \\