mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 23:07:46 -04:00
fix for mkoffsets without multiarch binutils
This commit is contained in:
parent
8284ab7107
commit
4f06c0df56
1 changed files with 2 additions and 2 deletions
|
@ -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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue