Fix rarun2 preload for latest OSX. Add il help and fix R_EGG constants

This commit is contained in:
pancake 2013-10-06 03:54:19 +02:00
parent 653881eb3a
commit 117a462424
3 changed files with 12 additions and 7 deletions

View File

@ -183,7 +183,11 @@ static int runfile () {
#endif
if (_preload) {
#if __APPLE__
// 10.6
r_sys_setenv ("DYLD_PRELOAD", _preload);
r_sys_setenv ("DYLD_INSERT_LIBRARIES", _preload);
// 10.8
r_sys_setenv ("DYLD_FORCE_FLAT_NAMESPACE", "1");
#else
r_sys_setenv ("LD_PRELOAD", _preload);
#endif

View File

@ -133,6 +133,7 @@ static int cmd_info(void *data, const char *input) {
" ih ; headers\n"
" ii ; imports\n"
" iI ; binary info\n"
" il ; libraries\n"
" is ; symbols\n"
" iS ; sections\n"
" iz ; strings\n");

View File

@ -57,13 +57,13 @@ r2 -q - <<EOF
?e #define R_EGG_OS_BEOS \`?h beos\`
EOF
#endif
#define R_EGG_OS_LINUX 0x0a52b843
#define R_EGG_OS_OSX 0x0b875ee1
#define R_EGG_OS_DARWIN 0x4292f662
#define R_EGG_OS_MACOS 0x0a66c956
#define R_EGG_OS_W32 0x0b877473
#define R_EGG_OS_WINDOWS 0x7de634da
#define R_EGG_OS_BEOS 0x7c70357e
#define R_EGG_OS_LINUX 0x5ca62a43
#define R_EGG_OS_OSX 0x0ad593a1
#define R_EGG_OS_DARWIN 0xd86d1ae2
#define R_EGG_OS_MACOS 0x5cb23c16
#define R_EGG_OS_W32 0x0ad5fbb3
#define R_EGG_OS_WINDOWS 0x05b7de9a
#define R_EGG_OS_BEOS 0x506108be
#if __APPLE__
#define R_EGG_OS_DEFAULT R_EGG_OS_OSX