From 69ca27e8516ef7b3c813e4d7af03c8b0b766bf31 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 19 Dec 2014 14:49:00 +0100 Subject: [PATCH] build: fix check-exports.sh for ppc64 arch On ppc64, `nm` reports the exported symbols as 'D' instead of 'T'. This caused `make check` to fail. "D" The symbol is in the initialized data section. "T" The symbol is in the text (code) section. (cherry picked from commit 48385430539fca657fd409e6b3f5f024fc4690dd) --- tools/check-exports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-exports.sh b/tools/check-exports.sh index 2049d0b3cb..dfd882c15b 100755 --- a/tools/check-exports.sh +++ b/tools/check-exports.sh @@ -13,7 +13,7 @@ TMPFILE="$(mktemp .nm-check-exports.XXXXXX)" get_syms() { nm "$1" | - sed -n 's/^[[:xdigit:]]\+ T //p' | + sed -n 's/^[[:xdigit:]]\+ [DT] //p' | sort }