ospath=$1 coreinit_textaddr=$2 powerpc-eabi-objcopy --change-section-address .text=$coreinit_textaddr $ospath/coreinit.elf $ospath/coreinit_reloc.elf function getcoreinit_symboladdr { val=`powerpc-eabi-readelf -a $ospath/coreinit_reloc.elf | grep "$1" | head -n 1 | cut -d: -f2 | cut "-d " -f2` echo "$2 = 0x$val;" } echo ""