1*e4af8f11SPedro Giffuni#!/bin/sh 2cdf0e10cSrcweir 3cdf0e10cSrcweir# This script is needed in the process of generating exported 4cdf0e10cSrcweir# symbols list on Mac OS X 5cdf0e10cSrcweir 6cdf0e10cSrcweir# Please note that the awk expression expects to get the output of 'nm -gx'! 7cdf0e10cSrcweir# On Panther we have to filter out symbols with a value "1f" otherwise external 8cdf0e10cSrcweir# symbols will erroneously be added to the generated export symbols list file. 9cdf0e10cSrcweirawk -v SYMBOLSREGEXP="^__ZTI.*$|^__ZTS.*$" ' 10cdf0e10cSrcweirmatch ($6,SYMBOLSREGEXP) > 0 && $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }' 11cdf0e10cSrcweir 12