d9a196da2e
These scripts use /bin/ksh, but they're dirt simple and can be used with /bin/sh, so just change the shebang. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
8 lines
183 B
Bash
Executable file
8 lines
183 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# 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
|