echo "registering binfmt handlers"
/usr/sbin/qemu-binfmt-conf.sh
fi
+ read mmap_min_addr < /proc/sys/vm/mmap_min_addr
+ if [ "$mmap_min_addr" != 0 ]; then
+ echo "Warning: mmap_min_addr is != 0. If programs fail at mmap this could be the reason"
+ fi
fi
fi
echo ':mips64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips64:' > /proc/sys/fs/binfmt_misc/register
echo ':mips64el:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mips64el:' > /proc/sys/fs/binfmt_misc/register
+echo 0 > /proc/sys/vm/mmap_min_addr
exec /.build/build