From d65f02a7b3037a046a01012d8090c23323e45bb1 Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Thu, 30 Mar 2017 16:30:53 -0500 Subject: [PATCH] AMPI: Add script to examine compiled objects for globals Change-Id: I57cf4f138f292d2f5fcd86c2f50447d336251940 --- src/libs/ck-libs/ampi/nm_globals.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/libs/ck-libs/ampi/nm_globals.sh diff --git a/src/libs/ck-libs/ampi/nm_globals.sh b/src/libs/ck-libs/ampi/nm_globals.sh new file mode 100755 index 0000000000..1b7a6feea9 --- /dev/null +++ b/src/libs/ck-libs/ampi/nm_globals.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# This script can be run on a compiled file (.o, .so, .a, linked ELF +# binary) to produce a list of symbols representing global variables +# potentially of concern for AMPI from a privatization stand-point + +PROG=$1 + +nm -C $PROG | egrep ' [BbCDdGgSs] ' | grep -v __ioinit -- 2.11.4.GIT