mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix iOS build, and a pair of bugs
This commit is contained in:
parent
e973deadca
commit
fdbde81e78
@ -320,7 +320,7 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
#if DEBUGGER
|
#if DEBUGGER
|
||||||
case 'd': debug = 1; break;
|
case 'd': debug = 1; break;
|
||||||
#else
|
#else
|
||||||
case 'd': eprintf ("Sorry. No compiler backend available.\n"); return 1;
|
case 'd': eprintf ("Sorry. No debugger backend available.\n"); return 1;
|
||||||
#endif
|
#endif
|
||||||
case 'D':
|
case 'D':
|
||||||
debug = 2;
|
debug = 2;
|
||||||
|
@ -16,7 +16,7 @@ R_API long double r_reg_get_double(RReg *reg, RRegItem *item) {
|
|||||||
switch (item->size) {
|
switch (item->size) {
|
||||||
case 80:
|
case 80:
|
||||||
if (regset->arena->size-off-1>=0) {
|
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;
|
ret = vld;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -26,7 +26,7 @@ export IOSVER=8.3
|
|||||||
export IOSINC=$(pwd)/sys/ios-include
|
export IOSINC=$(pwd)/sys/ios-include
|
||||||
export CFLAGS=-O2
|
export CFLAGS=-O2
|
||||||
|
|
||||||
if false ; then
|
if true ; then
|
||||||
make clean
|
make clean
|
||||||
./configure --prefix=${PREFIX} --with-ostype=darwin \
|
./configure --prefix=${PREFIX} --with-ostype=darwin \
|
||||||
--with-compiler=ios-sdk --target=arm-unknown-darwin
|
--with-compiler=ios-sdk --target=arm-unknown-darwin
|
||||||
@ -35,7 +35,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
time true # make -j4
|
time make -j4
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
( cd binr/radare2 ; make ios_sdk_sign )
|
( cd binr/radare2 ; make ios_sdk_sign )
|
||||||
rm -rf /tmp/r2ios
|
rm -rf /tmp/r2ios
|
||||||
|
@ -27,12 +27,14 @@ export IOSINC=$(pwd)/sys/ios-include
|
|||||||
export CFLAGS=-O2
|
export CFLAGS=-O2
|
||||||
export USE_SIMULATOR=0
|
export USE_SIMULATOR=0
|
||||||
|
|
||||||
|
|
||||||
if true ; then
|
if true ; then
|
||||||
make clean
|
make clean
|
||||||
cp -f plugins.tiny.cfg plugins.cfg
|
cp -f plugins.tiny.cfg plugins.cfg
|
||||||
./configure --prefix=${PREFIX} --with-ostype=darwin \
|
./configure --prefix=${PREFIX} --with-ostype=darwin \
|
||||||
--without-fork --without-pic --with-nonpic \
|
--without-debugger --without-fork \
|
||||||
--disable-debugger --with-compiler=ios-sdk \
|
--without-pic --with-nonpic \
|
||||||
|
--with-compiler=ios-sdk \
|
||||||
--target=arm-unknown-darwin
|
--target=arm-unknown-darwin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user