Commit Graph

126 Commits

Author SHA1 Message Date
pancake
6d05365f30 Make RAsmOp use RStrBuf instead of fixed-size buffers
* Seems to work, but there are many things to improve and fix
* Fixed some bugs (overflow, sandbox bypass, ..)
* Exposes some memleaks and bad api usages.
* Refactor all the things! \o/
* Fix z80, tms320 disasm and x86.as
* Care about memleaks
* Support meson
* And fix more tests related to pda and pdj and m68k
2018-08-22 11:43:05 +02:00
radare
586bf7fc15
ragg2 *.c shows stderr and fix clang cflags (-Os makes non-pic code 🤦) (#11122) 2018-08-18 03:41:24 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
Khairul Kasmiran
41ba85c57f Removed trailing spaces of ragg2.c 2018-07-07 23:53:30 +08:00
Gromimousse
78ce646cf6 Ragg2-cc is now completely erased from r2 (merged into ragg2) (#9996) 2018-05-02 20:34:30 +02:00
Gromimousse
a5c9fc7855 Ragg2-cc -> Ragg2 merge (#9658)
- change of 'access' function for 'r_file_exists' for windows portability
- several changes in the way ragg2.c is done, see PR #9658 pancake comments
- change function for the remove of 'file'.text
- open changed for r_file_dump
- some elt of cEnv_t are now const
- skip all the pointers verification in set_cEnv but do them in check_cEnv instead
- add 2 r_str_sanitize for file and CC in parseCFile
- rewrite the removal of .o, .tmp, .bin, .s files, with cleaner code
- changed the long command with sed and grep to 2 C functions.
  - The function parseCompiled that basically does what the command was doing
  - And r_str_stripLines that is equivalent to "grep -v" (maybe we should put this one in str.c ?)
- simplify a bit getCompiler function with a const char* array
- add ternary operator for armOrMips condition
- use r_file_path for finding path to compilers
- new file created in libr/egg which contains all the C file parser
- modifications of 2 files to match the change :
  - libr/egg/r_egg.h
  - libr/egg/Makefile
- the function r_str_stripLine is simplier (the mallocs wasn't needed)
- the function r_str_stripLine is moved to libr/util/str.c
- libr/include/r_util/r_str.h is changed accordingly
2018-03-15 11:48:21 +01:00
Giuseppe
a668ad4712 Make wopO stop when value isn't starting with 0x (#9538) 2018-03-02 11:03:05 +01:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Andrea Sindoni
f546e0751b Fix SIGSEGV in the encoder execution (#9168) 2018-01-09 22:04:25 +01:00
Madushan Nishantha
607a33e299 Fix ragg2-cc compile error with Xcode 7
This commit is just setting the `-miphoneos-version-min` compiler parameter to `0.0` dummy value in order to get it working
2018-01-01 16:01:57 +01:00
pancake
35911ac49a Fix android build 2017-09-12 22:36:58 +02:00
Guillaume Valadon
0c046a1e6d ragg2: -f support for Python and Javascript (#8454) 2017-09-11 12:21:27 +02:00
pancake
33da5069f3 Fix mz check again 2017-09-04 23:51:09 +02:00
pancake
5a28c2abfe Add 'c' output for ragg2 2017-09-04 12:59:06 +02:00
pancake
29ca827cf2 Fix Android builds 2017-08-19 18:52:57 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
Roi Martin
8d5b1b5418 Fix build 2017-03-13 14:24:53 +01:00
berney
496a500c08 Uses correct TEXT section name as of Sierra, fixes #6797 (#6799) 2017-02-17 04:30:05 +01:00
zonkzonk
56366df728 Removing path in shell redirections 2017-01-31 22:13:32 +01:00
pancake
5974d2035f Enhance ragg2-cc to support -a arm -b 64 -k darwin (iOS) 2017-01-29 02:36:50 +01:00
pancake
a8ad157026 Initial support of linux-arm-32 for ragg2-cc 2016-11-14 04:24:50 +01:00
pancake
ed9cd818f3 Initial support ndk-gcc in ragg2. Tested for arm64 2016-11-05 04:51:20 +01:00
pancake
d41b577106 Fix #5924 - r_flags -> r_flag 2016-10-27 01:07:58 +02:00
Riccardo Schirone
888841ee33 util: fix debruijin arguments meaning and uses (#5914) 2016-10-05 02:43:04 +02:00
Álvaro Felipe Melchor
7ba81f6886 More work into ragg2 2016-10-02 23:46:57 +02:00
Maijin
7cecadb74a Removing useless files/doc 2016-07-28 07:59:10 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
pancake
f96f00d62d Fix #5158 - Merge r_db into r_util 2016-06-17 12:19:16 +02:00
Qwokka
8b0adb129a Add "-m32" and "-m64" flags for cross compilation (#4743) 2016-05-01 18:33:13 +02:00
pancake
3758b3a54a Fix static/android build 2016-04-25 12:40:01 +02:00
pancake
f1f83276ea Fix static build with libbochs 2016-03-25 10:13:50 +01:00
Matthieu Tardy
1a573e1056 Cleanup binr/*/*.c
r2agent:
- Fix the usage to match other r2 binaries.
- Remove trailing whitespace.
- Remove addressed TODO.
- Add a default case to display usage and exit if -p option was used
  without argument.
- Return 1 instead of 0 if too much arguments are provided.
- Small coding style fixes.

radiff2:
- Small coding style fixes.

rafind2:
- Add a default case to display usage and exit if an option have a missing
  argument or getopt does not recognize an option character.
- Small coding style fixes.

ragg2:
- Small coding style fixes.

rahash2:
- Remove useless optarg check.
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.

rarun2:
- Small coding style fixes.

rasm2:
- Small coding style fixes.
- Missing arguments and unknown options now display usage and exit.

rax2:
- Small coding style fixes.

radare2:
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.
2016-03-05 19:52:42 +01:00
pancake
724a9253dd Fix android build 2016-02-16 23:33:14 +01:00
pancake
ca7f55be5a All those bins depend on r_lang 2016-01-30 21:19:36 +01:00
Eugene Kolo
36b6ae4762 Update ragg2 short help message 2015-12-14 00:00:39 +01:00
pancake
e368cb1513 More static build fixes 2015-11-01 11:43:05 +01:00
Wladimir J. van der Laan
feea0b91bc ragg2: Correct x86_64 shellcode
Repeated, redundant "shr rbx, 8;push rbx" causes the initial '/' to be stripped,
executing "bin/sh" instead of "/bin/sh".
2015-10-16 16:38:17 +02:00
jvoisin
420a5c41e0 Fix some minor compilation warnings 2015-10-15 12:36:34 +02:00
jvoisin
e0e170c3c5 Fix various clang-analyser issues 2015-08-28 18:29:31 +02:00
pancake
76f794009e Sort ragg2-cc help and quote all file variables 2015-08-27 12:00:10 +02:00
dequis
8d2217db59 ragg2: Use $INCDIR/sflib as SFLIBPATH instead of just $INCDIR 2015-08-27 11:53:03 +02:00
dequis
3c977fb56a ragg2: minor fixes to help/debug output text
- The help text had quotes at the end of each line
- The debug for the "assemble" step didn't match the actual command
2015-08-27 11:52:14 +02:00
pancake
b56207ebb7 Fix ragg2-cc script and honor SFLIBPATH 2015-08-19 11:36:18 +02:00
four0four
1d949d4fae added debruijn offset to ragg2 2015-07-22 14:29:40 -04:00
pancake
8efab9329b Fix build 2015-06-02 02:47:14 +02:00
pancake
589ee83f49 Fix ragg2 -v 2015-05-14 15:06:39 +02:00