2 # generate a set of ABI signatures from a shared library
6 GDBSCRIPT
="gdb_syms.$$"
14 # On older linker versions _init|_fini symbols are not hidden.
15 objdump
--dynamic-syms "${SHAREDLIB}" |
16 awk '$0 !~ /.hidden/ {if ($2 == "g" && $3 ~ /D(F|O)/ && $4 ~ /(.bss|.rodata|.text)/) print $NF}' |
24 # forcing the terminal avoids a problem on Fedora12
25 TERM
=none gdb
-n -batch -x $GDBSCRIPT "$SHAREDLIB" </dev
/null