notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8284ab7
)
fix for mkoffsets without multiarch binutils
author
kub
<derkub@gmail.com>
Fri, 16 Aug 2019 15:25:23 +0000
(17:25 +0200)
committer
kub
<derkub@gmail.com>
Fri, 16 Aug 2019 15:25:23 +0000
(17:25 +0200)
tools/mkoffsets.sh
patch
|
blob
|
blame
|
history
diff --git
a/tools/mkoffsets.sh
b/tools/mkoffsets.sh
index
e763259
..
3b4c076
100755
(executable)
--- a/
tools/mkoffsets.sh
+++ b/
tools/mkoffsets.sh
@@
-16,8
+16,8
@@
compile_rodata ()
rosect=$(readelf -S /tmp/getoffs.o | grep '\.rodata' |
sed 's/^[^.]*././;s/ .*//')
# read out .rodata section as hex string (should be only 4 or 8 bytes)
- objcopy --dump-section $rosect=/tmp/getoffs.ro /tmp/getoffs.o || exit 1
-
ro=$(xxd -ps /tmp/getoffs.ro
)
+ ro=$(readelf -x $rosect /tmp/getoffs.o | grep '0x' | cut -c14-48 |
+
tr -d ' \n'
)
if [ "$ENDIAN" = "le" ]; then
# swap needed for le target
hex=""