postFixupHooks+=(_cygwinFixAutoImageBase) _cygwinFixAutoImageBase() { find $out -name "*.dll" | while read DLL; do if [ -f /etc/rebasenix.nextbase ]; then NEXTBASE="$(>16)+1)<<16)) echo "REBASE FIX: $DLL $BASE -> $NEXTBASE" /bin/rebase -b $NEXTBASE $DLL NEXTBASE="0x`printf %x $(($NEXTBASE+$SKIP))`" echo $NEXTBASE > /etc/rebasenix.nextbase done }