Commit Graph

216 Commits

Author SHA1 Message Date
Seunghwan Chun
c67c47ed73 Fix duplicate aarch64 syscalls ##analysis 2022-08-09 20:40:45 +02:00
Paul B Mahol
ac4ef739a1 Check list allocation return value ##anal 2022-08-07 12:08:20 +02:00
Maurizio Papini
b6db3a5774
Updated syscalls for aarch64 to linux 5.19.0-rc1 ##anal 2022-07-14 15:59:53 +02:00
Alessandro Carminati
17e54ae9a5
Update syscall table for linux-x64 from kernel 5.19-rc1 ##anal 2022-07-14 15:59:27 +02:00
Ole André Vadla Ravnås
ac40d4b029 Add PIC_CFLAGS to the libr_syscall %.sdb rule
To fix linking on recent GNU toolchains, e.g. on Fedora 36.
2022-05-12 20:21:33 +02:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
Sergi Àlvarez i Capilla
aef278ee9c Make -Dblob=true statically link all r2 libraries ##build 2022-03-02 11:30:28 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
pancake
8b227868b8
Fix the windows CI workflows
* Use ninja -j2 in the CI, seems like there are less resources for windows
* Add windows configure+make+run CI workflow
* Use more join_paths()
2021-11-14 21:09:42 +01:00
pancake
657524aabc More meson simplifications 2021-11-14 02:35:57 +01:00
pancake
4c9fac84a0
Generate bin/d the same way as other sdb paths with meson ##build
* Add -Dwasan=true for meson to compile with msvc's address sanitizer
* Clear the prefix dir before installing, so we ensure it's more realistic
2021-11-14 00:57:35 +01:00
pancake
3c416c54cc
Fix meson build and proper use of cgen ##build (#18920) 2021-07-21 17:22:39 +02:00
pancake
46ec83c5a0
Add use_cgen meson option ##build (#18766) 2021-05-27 23:56:28 +02:00
pancake
d80476b698
Update SDB: Use the thin cgen instead of gperf (#18752) 2021-05-25 16:14:35 +02:00
pancake
a6c0d85a79
Fix #18719 - gperfizy r_syscall (#18733) 2021-05-21 21:39:19 +02:00
condret
4f67157ff5 Rename r_io_map_resolve to r_io_map_get ##io 2021-03-12 17:56:46 +01:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
Khairul Azhar Kasmiran
3073b0f8d8 Clear syscall and sysregs sdbs if their files are not found (#379)
* Clear syscall and sysregs sdbs if their files are not found
* "Fix" cmd_k tests

Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2021-01-19 05:37:17 +01:00
officialcjunior
d240f4c1ce Remove example.syscall-file ##build 2020-10-09 12:33:42 +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
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
pancake
160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
Anton Kochkov
ffe743ef39
Fix #4056 - rename DEPS to R2DEPS ##build (#17020)
* Rename DEPS to R2DEPS
* Cleanup of sys/build.sh
2020-06-12 10:49:28 +08:00
pancake
75ee57bfb0
Update SDB with boolified SdbForeachCallback (#17040) 2020-06-11 11:25:23 +02:00
Sylvain Pelissier
502b4b0f52
Fix MIPS syscall analysis (#16751) ##anal 2020-05-03 11:03:08 +02:00
Alexis Ehret
aa42a16b4e
Fix #12700 (#16332)
* Removed useless ref in .h

* Add the Super-H in anal/d
2020-03-28 06:35:53 -05:00
Florian Märkl
aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
pancake
c4e89115e2 Fix syscall resolutions for s110 operating system ##anal 2019-06-19 19:16:18 +02:00
Riccardo Schirone
fb1b7fbc56 Make ASAN green again (#13098)
* Fix ASAN crash in abtj
* Fix ASAN crash in asj
* Strdup the input because it is a const char * and shouldn't be modified
* Fix some r_assert warnings (related to len==0)
* Check if there are enough words only when necessary
* Other len == 0 edge cases that do not belong to r_return_* checks
* Do not print classes if there are none
2019-02-14 18:07:08 +01:00
Riccardo Schirone
f702202c22 Update list of sdb files to build and install ##meson (#13065) 2019-02-12 16:12:50 +01:00
blenk92
fca950d95f Fix x86_64 socket syscall (#13050)
Currently syscall nr 41 is named socketcall. However on x86_64
syscall nr 41 is named socket and expects 3 arguments.
2019-02-11 16:52:05 +01:00
blenk92
4c2e883575 Update list of syscalls for Linux on x86-(32|64) ##anal 2019-01-26 11:54:43 +08: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
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
dav1901
cc26fd73ba Minor fixes/cleanups (#12349) 2018-11-29 11:22:32 +01:00
Riccardo Schirone
4061f2fbb3 syscall: do not reload sdb database if nothing changes (#11801) 2018-10-14 12:56:15 +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
Jacob Rosenthal
eecaf1493f Finish converting arm s110 syscalls (#11280) 2018-08-28 10:35:30 +02:00
pancake
ff08c059da Kill the isThumb checks (s110-arm-16 half converted) 2018-08-26 23:08:44 +02:00
Jacob Rosenthal
f82b289822 arm syscalls: nordic s110 softdevice support 2018-08-23 16:41:34 +02:00
Jacob Rosenthal
f5ca226523 macosx syscalls: use 0x80 as interrupt on fix mach calls 2018-08-17 17:43:25 +02:00
Jacob Rosenthal
e569149450 Fix syscalls in macOS (#10956) 2018-08-07 12:15:53 +02:00
Paul I
b50080b363 Meson: remove build_always for custom_targets (#10798) 2018-07-23 19:39:58 +02:00
Paul I
14e3706c93 Meson: fix syscall sdbs generation (#10736) 2018-07-17 21:12:17 +02:00
Riccardo Schirone
54f171e8f9
libr/syscall: fix syscall sdb generation (#10694)
sync meson.build with Makefile
2018-07-11 09:57:41 +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
Paul I
3e68187c36 Fix pathes for meson (#10536) 2018-06-30 10:08:22 +02:00
pancake
b9de8503a6 Fix uaf 2018-06-05 16:01:23 +02:00
pancake
97e08a0d36 Fix for syscall database and dir.prefix 2018-06-05 16:01:23 +02:00