Commit Graph

61 Commits

Author SHA1 Message Date
pancake
bcd9e0aea0
Add the m68k.gnu disassembler plugin ##disasm 2021-04-04 18:07:26 +02:00
wargio
cfcf4f86ac Fixed AVR anal plugin warning due unpopulated mnemonic ##rizin 2021-01-19 05:37:17 +01:00
pancake
b8f37cb0c3 Add few tests for v850.gnu and fix instruction bounds ##disasm 2020-11-28 19:39:23 +01:00
Liumeo
c83d0e0c5f
Implement ppc assembler plugin ##port ##refactor (#17923)
* implement ppc assembler plugin
* reuse code
* update .travis.yml & Dockerfile
* support arm.as big endian
2020-11-20 19:20:14 +08:00
pancake
c521a6290c
Move spc700 asm,bin plugins to radare2-extras ##asm (#17762)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-10 12:11:29 +08:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers (#17249) ##build
* Avoid duplication of SDB headers in libr/include

SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.

* Fix pkgconfig file generation
2020-07-21 10:28:43 +02:00
Riccardo Schirone
594b940b7c
Fixes some of the issues in Travis (#17267)
* Do not check with r_return_ if the convention is present

Let's just assume the NULL default in such a case, so that architectures
for which we don't have a defined calling convention can still be
processed somehow by the analysis code. It won't be precise, but it's
better than nothing.

Also add a warning message so users are aware when the calling
convention is not defined.

* Fix oob-read when # is at the end of the cmd string

* Do not set TMPDIR when the new value is the empty string

When TMPDIR is set to empty value, clang+ld behaves in weird ways and
you cannot compile files from within the r2 shell (e.g. when using #!c
or #!cpipe)

* Use meson and add -lasan to pkgconfig files when sanitizer are used
2020-07-16 20:47:30 +08:00
FXTi
1ffdedcd07
Add Python bytecode plugins (#16771) 2020-05-13 10:37:09 +08:00
radare
3f77b9a76b
Avoid duplicated module filenames to fix static.sh ##build (#16403) 2020-04-02 14:30:27 +02:00
Khairul Kasmiran
78e21373be Revert "ONE_STREAM_HACK & scr.onestream: Force expected ONE_STREAM order if necessary (#15535)"
This reverts commit 39b40cdedd.
2020-02-17 00:00:46 +01:00
Khairul Azhar Kasmiran
39b40cdedd
ONE_STREAM_HACK & scr.onestream: Force expected ONE_STREAM order if necessary (#15535) 2019-12-02 23:09:38 +08:00
Kamil Lorenc
e13281829c Add support for or1k (OpenRISC) disasm+analysis (#15515) ##arch 2019-11-29 11:35:16 +01:00
Riccardo Schirone
05df48a96c r_8051_disas should not be exported (#15347) 2019-10-24 13:14:05 +02:00
Florian Märkl
aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
hmht
cb3cdc5500 Add 8051 assembler plugin (#15189) ##asm
Written from scratch, so it's entirely dependent on rasm2 to do the heavy
lifting, and perhaps lacking in features?

8051 syntax didn't make things easy; ampersand and pound signs caused
integration problems, requiring the rasm and regressiontest code to be patched.
2019-10-04 14:47:14 +02:00
Paul I
5094ab44cf Meson: export sdb symbols from r_util on Windows (#15098) 2019-09-23 00:00:21 +02:00
Giovanni
d337867999 Add support for the amd29k architecture ##disasm ##r2con2019 2019-08-19 17:28:44 +02:00
lzutao
1365948cee Do not use reversed keyword of meson ##build
`files` is a reversed keyword in meson. Try to avoid using it.
2019-01-10 14:15:50 +01:00
pancake
0653e4d0aa Rename m68xx to m680x for consistency 2018-12-29 17:42:07 +01:00
pancake
7aae8a7441 Add support for m68xx disassembler + analysis from capstone ##disasm 2018-12-29 17:03:40 +01:00
radare
c9e87787f1
Initial support for 6502 with Capstone ##disasm 2018-12-29 16:22:08 +01:00
lzutao
9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
Giovanni
1dbdabf83c C-Sky and MCore support for r2 (#11448) 2018-09-08 19:52:33 +02:00
Riccardo Schirone
eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +02:00
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
Fangrui Song
beda5da178 meson: disable inclusion-only .c files (#10982) 2018-08-08 09:04:07 +02:00
Fangrui Song
78796146be meson: don't compile inclusion-only .c files (#10952) 2018-08-07 09:17:34 +02:00
Fangrui Song
ac04e2d965 meson: don't compile files that are not used standalone
They caused a plethora of -Wunused-function warnings.
2018-08-04 18:16:12 +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
courk
e8aababb86 Add support for PIC Midrange & Enhanced Midrange (#10199)
* Add support for PIC Midrange & Enhanced Midrange

ESIL support isn't perfect yet: memory mapped registers support is
still missing.

* Fix syntax error in libr/anal/meson.build
2018-05-28 16:20:21 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
pancake
023e4389ed Remove more udis86 references 2018-03-14 23:43:53 +01:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Anton Kochkov
9aabb06939
Enable hexagon for Windows builds (#9337) 2018-02-07 14:57:32 +08:00
Giovanni
f32cc2777a added ppc Paired single (#9172) 2018-01-11 14:07:30 +01:00
pancake
b06d57a068 Fix avr build with meson 2018-01-04 18:46:35 +01:00
Florian Märkl
f862b90d4a Add PIC Baseline ASM Plugin 2018-01-02 18:18:42 +01:00
xarkes
43502af99b
Added meson lh5801 support (#9113) 2018-01-02 12:48:14 +04:00
xarkes
b909538708 Do not compile already included .c 2018-01-02 09:21:41 +01:00
xarkes
659b2bb84a Added meson avr support 2018-01-01 16:31:33 +01:00
xarkes
e482e410a5 Fix meson build 2018-01-01 14:02:54 +01:00
Giovanni
326fa654fc PowerPC VLE support with capstone [anal/asm] (#7899)
* libvle + capstone to support PowerPC VLE
2017-07-10 18:06:11 +02:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00