mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
9 lines
184 B
Bash
Executable File
9 lines
184 B
Bash
Executable File
#!/bin/ksh
|
|
|
|
# Get the address of a symbol in Hex.
|
|
# $1 = object/executable file name
|
|
# $2 = symbol name
|
|
/usr/ccs/bin/elfdump -t +s .symtab "$1" | grep "$2"$ | awk '{print $6}'
|
|
|
|
exit 0
|