repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gdb6
/
gdb
/
testsuite
/
gdb.hp
/
gdb.objdbg
/
tools
/
symaddr.pa64
blob
43fd793c5d9fabd3682dd10bc43ec34468b1f5da
1
#!/bin/ksh
2
3
# Get the address of a symbol in Hex.
4
# $1 = object/executable file name
5
# $2 = symbol name
6
/
usr
/
ccs
/
bin
/
elfdump
-t
+
s .symtab
"
$1
"
|
grep
"
$2
"
$ |
awk
'{print
$6
}'
7
8
exit
0