ospath=$1 coreinit_textaddr=$2 extension=$3 reloc=$((0x02000000-$coreinit_textaddr)) getcoreinit_symboladdr() { val=`powerpc-eabi-readelf -a "$PWD/$ospath.elf" | grep "$1" | head -n 1 | cut -d: -f2 | cut "-d " -f2` printf "$2 = 0x%X;\n" $((0x$val-$reloc)) } echo ""