http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986

--- Comment #11 from Anders F Björklund <afb at users dot sourceforge.net> 
2011-09-02 09:06:25 UTC ---
> OTOOL=${OTOOL:-otool}
> $OTOOL -s __GNU_GO __go_export $1 |
> grep -v "^$1:" | grep -v "Contents of (__GNU_GO,__go_export) section" |
> cut -f 2- | tr -d ' ' | xxd -r -p - $2

Apparently -X avoids that header text:
$OTOOL -s __GNU_GO __go_export -X $1 | cut -f 2- | tr -d ' ' | xxd -r -p - $2

Reply via email to