Fix iOS build, and a pair of bugs

This commit is contained in:
pancake 2015-09-15 04:05:43 +02:00
parent e973deadca
commit fdbde81e78
4 changed files with 8 additions and 6 deletions

View File

@ -320,7 +320,7 @@ int main(int argc, char **argv, char **envp) {
#if DEBUGGER
case 'd': debug = 1; break;
#else
case 'd': eprintf ("Sorry. No compiler backend available.\n"); return 1;
case 'd': eprintf ("Sorry. No debugger backend available.\n"); return 1;
#endif
case 'D':
debug = 2;

View File

@ -16,7 +16,7 @@ R_API long double r_reg_get_double(RReg *reg, RRegItem *item) {
switch (item->size) {
case 80:
if (regset->arena->size-off-1>=0) {
memcpy (&vld, regset->arena->bytes+off, 10);
memcpy (&vld, regset->arena->bytes+off, sizeof (long double));
ret = vld;
}
break;

View File

@ -26,7 +26,7 @@ export IOSVER=8.3
export IOSINC=$(pwd)/sys/ios-include
export CFLAGS=-O2
if false ; then
if true ; then
make clean
./configure --prefix=${PREFIX} --with-ostype=darwin \
--with-compiler=ios-sdk --target=arm-unknown-darwin
@ -35,7 +35,7 @@ else
fi
if [ $? = 0 ]; then
time true # make -j4
time make -j4
if [ $? = 0 ]; then
( cd binr/radare2 ; make ios_sdk_sign )
rm -rf /tmp/r2ios

View File

@ -27,12 +27,14 @@ export IOSINC=$(pwd)/sys/ios-include
export CFLAGS=-O2
export USE_SIMULATOR=0
if true ; then
make clean
cp -f plugins.tiny.cfg plugins.cfg
./configure --prefix=${PREFIX} --with-ostype=darwin \
--without-fork --without-pic --with-nonpic \
--disable-debugger --with-compiler=ios-sdk \
--without-debugger --without-fork \
--without-pic --with-nonpic \
--with-compiler=ios-sdk \
--target=arm-unknown-darwin
fi