7 open( LOG
, ">ctor-dtor-report" ) || print "can't open $?\n";
9 @path_fields = split(/\//,$curdir);
11 $path = join ("/",@path_fields);
13 print "Searching in " . $path . "\n";
14 open (REPORT
, "find $path -name \"*.o\" -print | xargs nm -Bno | egrep \"_GLOBAL_\.[ID]|_tcf\" 2>&1 |" ) || die "open: $! \n";
22 if (-s
"./ctor-dtor-report" > 0) {
23 print "Global Constructors\/Destructors Found" . "\n";