Commit graph

784 commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
ec8e8c97e7 Add sys/r2env.sh: Set up env for r2 in non-standard loc (#15696) 2019-12-28 12:48:22 +01:00
pancake
73bc4da69b Revert "Strip bins and libs for the Debian package"
This reverts commit 74fb0efbe3.
2019-12-20 21:10:54 +09:00
Khairul Azhar Kasmiran
61a2d421dd sys/meson.py: Use == 'vs2017' instead 2019-12-17 10:42:22 -06:00
Khairul Azhar Kasmiran
3f5117aa2e Fix #15653: Silence MSVC XP deprecation warning 2019-12-17 07:37:22 -06:00
yossizap
9d1421a188 Added rebuild rules for windbg ##debug 2019-11-25 18:04:16 +01:00
Giovanni
08ae6fc891 Fix #15485 - Improve argument parsing in sys/{install,build} (#15486) ##build 2019-11-20 16:40:02 +01:00
Khairul Azhar Kasmiran
1472f849e4 Rename "asan" to "sanitize" (#15412) ##build 2019-11-05 00:33:35 +01:00
Sergi Àlvarez i Capilla
74fb0efbe3 Strip bins and libs for the Debian package 2019-11-04 17:53:29 +01:00
Khairul Azhar Kasmiran
16fa374db1 sys/meson.py: --asan accepts sanitizer list (#15405) 2019-11-04 00:38:20 -06:00
Khairul Azhar Kasmiran
3d2b2311d8
Sync default sanitizer list of sys/asan.sh and sys/meson.py (#15397)
* Sync default sanitizer list of sys/asan.sh and sys/meson.py

* Keep signed-integer-overflow
2019-11-02 21:47:17 +08:00
Khairul Azhar Kasmiran
dc65828446 sys/meson.py: Use -fsanitize=... instead of -lasan when linking (#15390) 2019-10-30 18:58:11 +01:00
TheGoddessInari
d42ed33f41 Make the generated r2.bat use bat path_relative syntax instead of hardcoding. (#15383) 2019-10-29 22:13:38 +08:00
Khairul Azhar Kasmiran
6190995828 sys/asan.sh: Use -fsanitize=... instead of -lasan when linking (#15375) ##build 2019-10-28 16:09:11 +01:00
pancake
f2d76b16cd Switch to travis-ci.com 2019-10-10 20:04:02 +02:00
Maijin
9227815fdb Change radare->radareorg links 2019-10-07 10:48:31 +02:00
Anton Kochkov
e41345edc8
Add MSVC 2019 for AppVeyor ##build (#13345)
* Try MSVC 2019 for AppVeyor ##build
* Fix meson building scripts
* Remove XP build from AppVeyor VS2019
* Install mingw
* Fix clang-cl build
2019-09-30 12:31:40 +08:00
Khairul Azhar Kasmiran
18ef593b2e Set rpath if non-Windows Meson shared ##build (#15051) 2019-09-22 10:49:54 +02:00
Gordon M
ca1eddb22d Debian package fixes (#15081) ##build
* Use xz instead of gzip
2019-09-20 12:25:26 +02:00
kmartin36
5c480054a2 Don't run ldconfig when installing into /usr (#15049) ##build
It seems that commit 7e5f1f5851 attempted to prevent /etc/ld.so.conf.d/radare.conf from being added and ldconfig from being necessary when the user installs into /usr instead of /usr/local. This patch achieves that behaviour.
2019-09-16 09:40:20 +02:00
Paul I
a08cb1bdcf Add webui option to sys/meson.py (#15037) 2019-09-14 23:02:52 +02:00
pancake
c13e6e5013 Fixes for sys/osx-pkg 2019-09-05 18:28:41 +02:00
pancake
72df7056f5 Use LTO for the Cydia build 2019-08-22 20:22:11 +02:00
pancake
5b87871294 Shrink the Cydia package from 512mb to only 64 ##build 2019-08-22 19:26:03 +02:00
pancake
30a5d7ed2d Fixes for the cydia static build of r2, needed for iOS12 2019-08-22 18:56:57 +02:00
radare
c93c094c40
Fix android-static ##build 2019-08-01 04:39:40 +02:00
pancake
f88c30dce7 Delete prefix/ and fix static builds (missing libmpc.a) ##build 2019-07-26 05:30:21 +02:00
pancake
718698d450 Fixes for the android compilations ##build 2019-07-18 11:46:06 +02:00
pancake
1034510dae Add $onlydebug in sys/ios-cydia.sh ##build 2019-07-18 02:32:24 +02:00
pancake
1aebd0a26d Fix single-step in the iOS-arm64 native debugger ##debug 2019-07-18 02:30:45 +02:00
pancake
9f4f802cec Fix build --without-gpl 2019-07-10 19:45:34 +02:00
GustavoLCR
0557ca2a3e Also put r2.bat under \bin on Windows install 2019-06-21 20:25:46 +02:00
GustavoLCR
ae00b18d0b Dynamically find radare2 install dir on Windows ##windows 2019-06-20 18:10:01 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
Anton Kochkov
1da215dcac Add codespell script 2019-06-18 14:51:30 +08:00
pancake
e29ba99a07 Add sys/build-shlib.sh and fix static builds ##build 2019-05-28 23:15:22 +02:00
pancake
092173bf90 Improve configure argument handling in sys/install.sh ##build
* Handle --help, --with-capstone5 and --install (no symlinks)
2019-05-14 17:54:11 +02:00
pancake
a8a22b9383 Add support for build for android-x86_64 ##build 2019-05-14 15:02:30 +02:00
radare
bf5e302881
Add anal.ex option, cleanup and improve the Java support ##anal
* Current java implementation of the analysis is not working well
* RBin.Java doesnt updates the vsizes because it seems to break things. wip for another PR
* Added anal.ex option to use extensions or not
2019-05-08 18:26:11 +02:00
Khairul Azhar Kasmiran
b3503ee207 sys/meson.py: Create r2.bat as alias to radare2.exe ##windows 2019-05-06 18:23:36 +02:00
radare
8f17f58fc3
Do not use system-wide capstone when building with sys/install.sh ##build 2019-04-16 16:55:15 +02:00
pancake
0ba7bdb29e Build for Cydia without libuv 2019-04-02 17:12:28 +02:00
Anton Kochkov
b858e7e10e Fix #13430 - Kill MinGW remnants ##deprecate 2019-03-31 12:03:07 +02:00
radare
7ffa72aaed
Fix #13552 - Crashes in tcc parser (#13566) 2019-03-31 00:32:14 +01:00
radare
e04f31a313
Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
pancake
3af32f95e4 Implement vdo to use aho from visual ##visual 2019-02-14 04:19:12 +01:00
pancake
8cf29fdb95 Purge capstone when doing the iOS build 2019-02-11 15:59:23 +01:00
pancake
158f8fdb8f Fix the iOS simulator build 2019-02-11 15:49:26 +01:00
pancake
f33db3e48c Some more fixes for the iOS build in sys/ios-sdk.sh 2019-02-07 17:24:40 +01:00
pancake
6a09544506 More ios-sdk build fixes 2019-01-30 09:14:24 -06:00
pancake
5535b6f380 iOS10 is required for the arm32 builds 2019-01-29 22:10:07 -06:00
pancake
0314eed9fe Add LC_VERSION_MIN for the libr2.dylib iOS build 2019-01-29 21:44:47 -06:00
pancake
709ffb60b6 Fixes for the android build and related warnings 2019-01-21 12:10:33 +01:00
pancake
fc68124f4d Do not statically link binaries by default in sys/static.sh ##build
* Use STATIC_BINS=1 env var to change this behaviour
2018-12-30 13:38:50 +01:00
pancake
90ac594f08 Initial implementation of the Alpine Linux package ##build 2018-12-18 23:07:38 +01:00
iamahuman
9ed24b16a3 Fix Emscripten support 2018-12-15 18:32:24 +01:00
Dan Robertson
81b3d9aa7a sys/user.sh: Allow setting an install path (#12412)
Users may want to install radare2 to a different directory than ~/bin.
Parse --install-path in sys/user.sh to allow for users to do so.
2018-12-05 12:30:36 +01:00
pancake
8c6ddc6375 Add sys/release.sh 2018-11-26 05:32:24 +01:00
pancake
6043d798be Fix codesigning for ios-cydia.sh with ldid2 2018-11-24 03:30:08 +01:00
Riccardo Schirone
0868b2d47f Use -static in CFLAGS too (#12246) 2018-11-21 01:55:23 +01:00
Riccardo Schirone
015ed58426 ELF plugin code cleaning ##refactor
* clang-format-diff: do not put space after Elf_
* bin/elf: remove warning because it's already printed by R_LOG_WARN
* bin/elf: rename get_static to is_static
* bin/elf: a bit of refactoring in init_dynamic_section
* Revert "bin/elf: other cleaning"
This reverts commit e39af6f69e96feceea648bf1d492524882013c4e.
* bin/elf: cleaning in r_bin_elf_get_sections
* bin/elf: refactor a bit get_sections_from_phdr
* bin/elf: fix create_section_from_phdr
* bin/elf: small style fixes in get_boffset
* bin/elf: simplify the code by using READWORD instead of #if/#else
* bin/elf: fix read_phdr because you need to pay attention to the order
2018-11-17 22:45:49 +01:00
pancake
aaea9b973c Add -static in sys/static for non-macos 2018-11-16 16:53:50 +01:00
pancake
712fca842c Improve the support for emscripten asm.js/wasm 2018-11-15 22:49:52 +01:00
Riccardo Schirone
bb3d054c6d sys/clang-format-diff: other small fixes to the style script 2018-11-15 12:18:12 +01:00
Riccardo Schirone
5651cf58f4 clang-format-diff: improve modified lines detection 2018-11-12 10:30:01 +01:00
Paul I
9ebbe7251b sys/meson.py: add missing makedirs() (#12127) 2018-11-12 08:26:38 +01:00
Paul I
3b8e0a585c Meson: add r_crypto headers to r2 dist 2018-11-11 22:07:43 +01:00
pancake
14fd07d5db Add --without-libuv and companion flags in ios-static-appstore.sh ##build 2018-11-09 18:14:47 +01:00
Riccardo Schirone
936512916b Another RBin API cleanup ##bin
* remove R_API from functions not used outside of RBin module
* move not-exported functions to a separate private header
* move bin_private in i/private.h
* fix and use R_IPI
* fix mips_assemble
2018-11-05 11:25:31 +01:00
pancake
9ae01a3c97 Make sys/indent.sh usable system wide and support directories 2018-10-27 03:14:48 +02:00
Riccardo Schirone
6115f00455
remove r_bin_load_io2 and rename MODE defines ##refactor
PR #11888 

* bin: no need for 2 r_bin_load_io APIs
* bin: remove io-related unused functions
* r_bin.h: remove some old comments
* r_bin.h: group together related APIs
* extract print/set modes in r_types, to remove dups in r_bin and r_core
* clang-format-diff: fix ternary operator indent for pancake
2018-10-24 16:54:57 +02:00
pancake
1b7d5b5f7f Downgrade credentials when building with sudo ##build 2018-10-23 22:22:38 +02:00
pancake
3670657748 Some more build fixes for iOS 2018-10-22 16:00:02 +02:00
radare
c50357fbe6
Fix the build of the iOS SDK ##build (#11884) 2018-10-21 14:56:56 +02:00
pancake
8ed55d5ea5 ios fixes 2018-10-21 01:41:48 +02:00
Riccardo Schirone
64d16fc506 Some code cleanup and asserts in RBin ##refactor
* libr/bin: no need to allocate RBinOptions on the heap
* bin: start using r_return_* around, that's just the beginning
* bin: remove io_owned since it's not used anywhere
* io: make r_io_bind return nothing
* bin: remove unused functions and simplify r_bin_load_io
r_bin_load_io was calling r_bin_load_io2 with UT64_MAX as sz parameter,
but r_bin_load_io2 just returns false if (st64)sz is less than 0, so
that call is actually useless and can be removed.
* bin/bin: fix some preconditions
* bin/open: fix precondition to check for bin and filename too
2018-10-21 01:27:15 +02:00
pancake
fd0ab00b14 Fix static blob build for android and disable libuv ##build 2018-10-20 20:10:17 +02:00
pancake
089e21ff46 Disable libuv in sys/sdk too 2018-10-20 20:00:20 +02:00
pancake
72246175f5 Add missing linking flags to statically build in OpenBSD 2018-10-20 19:58:20 +02:00
pancake
60508a370d Fix sys/meson-sdk.sh 2018-10-20 19:14:27 +02:00
pancake
7d32c05f9a Initial import of the sys/meson-sdk.sh ##build 2018-10-20 12:26:07 +02:00
pancake
a33fc03725 Fix visual panels glitch and handle 's' in zoom mode ##visual
* And remove dead code
2018-10-20 02:12:30 +02:00
pancake
9d912b46a1 Fix android build for the latest NDK based on LLVM ##build 2018-10-20 02:12:30 +02:00
pancake
734b3d73ba Do not build GPL code with the static build 2018-09-09 08:24:45 +02:00
pancake
1ad4b20e80 Static builds must go without libuv dependency ##build 2018-09-09 05:33:38 +02:00
pancake
fbd5bb72d4 Fix regexes in sys/release-notes.sh 2018-10-17 12:23:45 +02:00
Stefan Ilic
0e62aee601 Don't strip binaries in static.sh (#11832) ##build 2018-10-16 23:38:42 +02:00
radare
0a699f60e1
Add sys/release-notes.sh and define commit message conventions ##rules (#11827) 2018-10-16 23:38:20 +02:00
pancake
2e68dccde2 Improve autogen.sh to use r2pm if available 2018-10-16 00:28:51 +02:00
pancake
dc96db9e51 Try clang-format when no uncrustify is found and reindent r_reg with sys/indent.sh 2018-10-16 00:17:44 +02:00
Stefan Ilic
a0f274629c Remove auto-generated test file after build (#11719) 2018-10-02 23:58:16 +02:00
pancake
8caa2ba2ee Fix sys/sdk.sh (--without-gpl) 2018-09-26 10:03:32 -07:00
Riccardo Schirone
1f0ceaa6c7 sys/pre-commit-indent.sh: fix return code 2018-09-26 11:06:04 +02:00
Riccardo Schirone
58ae11607a
Create script to apply style to diffs (#11261)
* restore tabs size to 8 chars
* fixes clang-format-diff for function declaration
* DEVELOPERS: explain pre-commit hook
* sys/pre-commit: do not consider unstaged changes
* sys/pre-commit: change doc
* create an example in doc
* suggest --no-verify
2018-09-26 10:49:16 +02:00
Paul I
8786d57aa5 Fix sys/meson.py (#11626) 2018-09-23 10:54:37 +02:00
Khairul Azhar Kasmiran
2b94b2a909 sys/asan.sh: -u for user.sh (#11619) 2018-09-22 10:50:34 +02:00
radare
7579c57bdc
Add signed-integer-overflow for ASAN (#11604) 2018-09-21 12:03:15 +02:00
radare
81acc0dc97
Add undefined behaviour tests in the default sys/asan.sh (#11555) 2018-09-17 14:44:55 +02:00
radare
cc8a2b84be
Introduce new R_* macros to define direction, null, defaults, etc in function signatures (#11546)
- Helps to identify some bugs at compile time
- Useful for git grep and understand the usage of the functions
- Improve readability
- Fix memleak introduced in previous anal/var pr
- Help to find unnecessary null checks and start to use r_assert
- Deprecate R_TRUFAE R_TRUE R_FALSE and R_ERROR
- Add r2api script to ease system-wide git grep for r2 devs
- Use more R_OWN and r_return_val_if_fail
2018-09-17 12:27:11 +02:00
Miles Whittaker
a32ba803f4 Scripted dynamic building of alpine docker image (#11515) 2018-09-16 23:05:03 +02:00
pancake
eb4387c4d2 Delete sys/install-su.sh (implemented in install.sh with USE_SU=1) 2018-09-16 00:08:46 +02:00
pancake
d1e5b9a566 Remove sys/gtk* 2018-09-16 00:03:18 +02:00
pancake
75b9f699d8 Remove rasign2 from the list of statically built binaries 2018-09-14 12:15:15 +02:00
pancake
d389cd4468 Fix sys/build.sh on Mac 2018-09-14 01:42:50 +02:00
rdjondo
d4de63a5b2 Make compilation on Raspberry Pi more user friendly (#11379) 2018-09-13 19:08:20 +02:00
Paul I
4ed384b230 sys/meson.py: install libr/include/msvc on Windows (#11507) 2018-09-13 08:34:14 +02:00
Pavel Krčma
318012c2dc A quick fix for Android native build (#11449) 2018-09-08 17:54:20 +02:00
kij
5c848d1e8a Added support for single file in shellcheck.sh (#11360) 2018-09-03 02:50:27 +02:00
kij
04e52405b4 Add gmake check, just like install.sh (#11358) 2018-09-02 22:06:48 +02:00
Khairul Azhar Kasmiran
3a6acc3eb7 sys/user.sh: use dirname($0) instead of dirname($PWD/$0) (#11333) 2018-09-02 01:40:25 +02:00
pancake
ad02255f58 Fix shellcheck.sh 2018-08-31 17:58:37 +02:00
kij
f3d2edea56 WIP: Remove hardcoded list of scripts (#11228)
* remove hardcoded list of scripts
disabled shellcheck xml format

* removed GNU find dependency

* removed unused code
removed file caching
2018-08-31 15:54:25 +02:00
Dmitriy Somov
054351b223 Fix #7011 - Removed unused clean.sh, full-uninstall.sh, uninstall.sh, changed purge.sh (#10938)
* Deleted clean.sh, full-uninstall.sh
* Removed uninstall.sh, running make uninstall should be enough
* Changed Makefile and purge.sh, now users should only use ,ake purge or make system-purge, as listed in README
* Reduced 'distclean mrproper rmd clean' options to simple 'clean' in Makefile
2018-08-10 16:06:41 +02:00
pancake
cb5ce6ce47 Add sys/meson.py --alias 2018-08-01 14:51:41 +02:00
pancake
0d6647e4f0 Add sys/meson.py --nosudo (use sudo by default) 2018-08-01 03:12:33 +02:00
David CARLIER
adaa0bc986 Making asan no ops for OpenBSD (not supported) and few mem leaks fixes (#10842) 2018-07-29 16:43:46 +08:00
Maijin
bf9d45fa47 Fix #10767 2018-07-17 21:05:50 -04:00
pancake
c9242c5a66 Add --uninstall in sys/meson.py 2018-07-18 02:30:59 +02:00
pancake
73147a1e94 Add --pull to sys/meson.py 2018-07-18 02:28:59 +02:00
pancake
f04057cae4 Implement sys/meson.py --asan 2018-07-18 02:27:02 +02:00
pancake
33a39499a0 Add sys/meson.py --symstall 2018-07-18 02:06:19 +02:00
Riccardo Schirone
c932d1abff
meson fixes (#10743)
* r2pm/meson.build: install r2pm
* meson.build: use system libraries when available
* travis: add fedora-sys to the list of things to test
* bin_nso.c: still include lz4.c when not on meson
* Dockerfile.travis: add required system dependencies to dockerfile
* meson.build: split zip_dep in libzip and zlib dependencies
* shlr/meson.build: zip needs zlib
2018-07-17 23:01:40 +02:00
pancake
47894aec70 Fix all the pending fuzzed bins for omf 2018-07-16 14:17:26 +02:00
pancake
d13c50a688 Without-debugger is now --disable-debugger 2018-07-14 11:34:10 +02:00
pancake
04d5a85d24 Add ios-libr.sh workaround script 2018-07-11 19:15:08 +02:00
pancake
df0aadb89f Fix sys/ios-cydia.sh for iOS11/electra jailbreak 2018-06-21 02:41:14 +02:00
pancake
afe3792d0f Force embed-bitcode on iOS builds
- Fix typo and improve ios-sdk build
- Don't let capstone set the -arch flags
2018-06-10 03:38:28 +02:00
pancake
34cb7c5ec0 Drop armv7 for ios-sdk by default, armv7s is fine 2018-06-06 17:28:55 +02:00
Paul I
cad927a591 Meson: add rule for tags.r2 (#10215) 2018-05-28 23:25:48 +02:00
radare
d461644977
Add --with-libr and deprecate --with-{nonpic,pic,merged} (#10212) 2018-05-28 17:14:49 +02:00
pancake
b63e146300 Fix ft help message and install flag tags file 2018-05-27 15:55:33 +02:00
pancake
e2e2af1998 Add initial refactoring script and hints for android-mips 2018-05-23 18:22:37 +02:00
pancake
8bab020ff5 Honor libr.dylib on ios-sdk.sh 2018-05-21 02:03:41 +02:00
pancake
d263e32a3b Fix sys/install.sh when builddir have spaces, make still fails 2018-05-16 16:35:53 +02:00
pancake
93551610b8 Fixes for the ios-sdk build 2018-05-16 10:16:56 +02:00
pancake
05d092453b Enforce embed-bitcode ldflags in ios-sdk 2018-05-15 11:26:42 +02:00
radare
9e08da0fa6
Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046)
- Update spp and force hidden visibility
- Use R_API wisely
- RSys.prefix returns const things
- Use -install_name on Apple
- Fix merged lib visibility linking on Linux
- Use OSTYPE instead of BUILD_OS
- Honor crosscompiler-objcopy and support android like linux
- Add extra missing archives
- Fix for android
- Upgrade spp and sdb
- Skip libr. from symstall
- Add --enable-merged configure option
- Use --enable-merged on ios-sdk
- Upgrade sdb again for js0n
- Kill sys/ios-shell.sh
- Msvc dynamic build fix
2018-05-09 23:31:52 +02:00
Paolo Monti
acf3ea06cf Fix #9706, created signing script and added to build.sh (#10013) 2018-05-04 20:07:50 +02:00
Gromimousse
78ce646cf6 Ragg2-cc is now completely erased from r2 (merged into ragg2) (#9996) 2018-05-02 20:34:30 +02:00
Paul I
52aabd40ff Reduce r2 default subdirs paths for Windows (#9991)
R2_INCDIR: include\libr -> include
R2_WWWROOT': share\radare2\{R2_VERSION}\www -> share\www
R2_SDB': share\radare2\{R2_VERSION} -> share
R2_ZIGNS': share\radare2\{R2_VERSION}\zigns -> share\zigns
R2_THEMES': share\radare2\{R2_VERSION}\cons -> share\cons
R2_FORTUNES': share\doc\radare2 -> share\doc
R2_HUD': share\radare2\{R2_VERSION}\hud -> share\hud
2018-04-30 12:38:25 +02:00
Paul I
bfff81c199 sys/meson.py: allow to redefine r2 paths (R2_*DIR, R2_SDB, R2_WWWROOT, ...) (#9981) 2018-04-29 16:03:04 +02:00
Paul I
6fa279ca1f Update Meson version to 0.46.0 (#9950) 2018-04-25 13:07:43 +02:00
lzutao
0767f40853 Remove end slash in ROOT (#9910) 2018-04-17 15:59:28 +02:00
pancake
6760b26376 Add asm.meta, and make magic when disabled. Fix sys/rebuild.sh cs 2018-04-15 02:29:03 +02:00
pancake
5cde546971 Fix aae on x86-64, improve Vx, add sys/rebuild.sh tcc, .. 2018-04-11 02:32:27 +02:00
pancake
9e39a91bd0 Add ndk-g++ 2018-04-11 00:22:46 +02:00
Paul I
8675e324ac Meson: add libr_shlr.a building/installation rule (#9789)
* Meson: add libr_shlr.a building/installation rule

* Meson: distribute *.lib/*.a files for Windows by default
2018-04-02 22:33:05 +02:00
Paul I
4f7687287f Meson: Some little fixes (#9783)
* fix shlr libraries names
* fix missing headers for Windows dist
* fix missing format files for Windows dist
* add <static_runtime> option
* add argument with list of additional meson options for sys/meson.py
2018-03-30 23:35:12 +02:00
Lowly Worm
f91bd2d323 update asan.sh to actually take the env for ASAN 2018-03-13 19:08:29 -07:00
zlowram
b91169efcc Honor CFLAGS on the static build test compilation (#9677) 2018-03-13 10:38:38 +08:00
zlowram
0716a903cc Honor CFLAGS and LDFLAGS in static build script (#9660)
The CFLAGS and LDFLAGS were being overwritten and didn't allow
modification of such variables for adding other compiling and
linking options (e.g. compile with address sanitizer + coverage)
2018-03-11 23:35:40 +01:00