source: tags/arb-6.0/UNIT_TESTER/make_symlist.sh

Last change on this file was 10980, checked in by westram, 10 years ago
  • filter out some (harmless) Dwarf Error
  • Property svn:executable set to *
File size: 639 bytes
Line 
1#!/bin/bash
2FULLLIB=$1
3SYMLIST=$2
4
5if [ $(uname) = "Darwin" ]; then
6#nm is unabled to demangle names on os x. use c++filt instead for the job
7CMD="nm -l $FULLLIB | c++filt > $SYMLIST"
8else
9CMD="nm -C -l $FULLLIB > $SYMLIST"
10fi
11
12# temp workaround for using gcc 4.8 on dwarf 3 system
13( eval "$CMD" ) 2>&1 \
14    | grep -v "Dwarf Error: Invalid or unhandled FORM value" \
15    | grep -v "this reader only handles version 2 and 3 information" \
16    | grep -v "this reader can not handle sizes greater than '8'" \
17    | grep -v "this reader can only handle address sizes '2', '4' and '8'" \
18
19if (( ${PIPESTATUS[0]} )); then false; else true; fi
20
Note: See TracBrowser for help on using the repository browser.