summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2021-04-03 03:20:12 +0800
committerYi Kong <yikong@google.com>2021-04-03 03:21:24 +0800
commit6f43f54264695161150a7c1497545c6d068eb07b (patch)
treec9adf6a05f773409cceec3899a0364a49efc6dff /scripts
parentcb05715e9ef54e8d7a8cecb5dba5df8facf8a083 (diff)
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/toc.sh2
1 files changed, 1 insertions, 1 deletions
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 <<EOF > "${depsfile}"
${outfile}: \\