From 821d31f54c520d9e9375cb569dcbacbcc8feb101 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Mon, 22 May 2017 15:39:29 -0700 Subject: [PATCH] [GN] Fix up arguments to nm R=rmacnak@google.com Review-Url: https://codereview.chromium.org/2899713003 . --- build/toolchain/gcc_toolchain.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni index 1cbdb5f8c5d..08dd4179a0a 100644 --- a/build/toolchain/gcc_toolchain.gni +++ b/build/toolchain/gcc_toolchain.gni @@ -149,7 +149,7 @@ template("gcc_toolchain") { temporary_tocname = sofile + ".tmp" link_command = "$ld -shared {{ldflags}} -o $sofile -Wl,-soname=$soname @$rspfile" - toc_command = "{ $readelf -d $sofile | grep SONAME ; $nm -gD -f p $sofile | cut -f1-2 -d' '; } > $temporary_tocname" + toc_command = "{ $readelf -d $sofile | grep SONAME ; $nm -gD -f posix $sofile | cut -f1-2 -d' '; } > $temporary_tocname" replace_command = "if ! cmp -s $temporary_tocname $tocfile; then mv $temporary_tocname $tocfile; fi" command = "$link_command && $toc_command && $replace_command"