mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 08:14:35 +00:00
![Riccardo Schirone](/assets/img/avatar_default.png)
* 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
104 lines
1.8 KiB
Meson
104 lines
1.8 KiB
Meson
r_io_sources = [
|
|
'io.c',
|
|
'io_fd.c',
|
|
'io_map.c',
|
|
'io_cache.c',
|
|
'io_desc.c',
|
|
'io_plugin.c',
|
|
'ioutils.c',
|
|
'undo.c',
|
|
'p_cache.c',
|
|
'p/io_ar.c',
|
|
'p/io_fd.c',
|
|
'p/io_bfdbg.c',
|
|
'p/io_bochs.c',
|
|
'p/io_debug.c',
|
|
'p/io_default.c',
|
|
'p/io_gdb.c',
|
|
'p/io_gprobe.c',
|
|
'p/io_gzip.c',
|
|
'p/io_http.c',
|
|
'p/io_ihex.c',
|
|
'p/io_mach.c',
|
|
'p/io_malloc.c',
|
|
'p/io_mmap.c',
|
|
'p/io_null.c',
|
|
'p/io_procpid.c',
|
|
'p/io_ptrace.c',
|
|
'p/io_qnx.c',
|
|
'p/io_r2k.c',
|
|
'p/io_r2pipe.c',
|
|
'p/io_r2web.c',
|
|
'p/io_rap.c',
|
|
'p/io_rbuf.c',
|
|
'p/io_self.c',
|
|
'p/io_shm.c',
|
|
'p/io_sparse.c',
|
|
'p/io_tcp.c',
|
|
'p/io_windbg.c',
|
|
'p/io_winedbg.c',
|
|
'p/io_zip.c',
|
|
]
|
|
|
|
if host_machine.system() == 'windows'
|
|
r_io_sources += [
|
|
'p/io_r2k_windows.c',
|
|
'p/io_w32.c',
|
|
'p/io_w32dbg.c',
|
|
]
|
|
endif
|
|
|
|
|
|
r_io_deps = [
|
|
r_util_dep,
|
|
r_socket_dep,
|
|
bochs_dep,
|
|
gdb_dep,
|
|
windbg_dep,
|
|
qnx_dep,
|
|
zip_dep,
|
|
ar_dep,
|
|
pth
|
|
]
|
|
|
|
if host_machine.system() == 'windows'
|
|
r_io_deps += w32dbg_wrap_dep
|
|
endif
|
|
|
|
if host_machine.system() == 'linux' or host_machine.system() == 'android'
|
|
r_io_sources += [
|
|
'p/io_r2k_linux.c',
|
|
]
|
|
## only for shm_open
|
|
# r_io_deps += meson.get_compiler('c').find_library('rt')
|
|
endif
|
|
|
|
if use_ptrace_wrap
|
|
r_io_deps += ptrace_wrap_dep
|
|
endif
|
|
|
|
r_io = library('r_io', r_io_sources,
|
|
include_directories: platform_inc,
|
|
dependencies: r_io_deps,
|
|
c_args: library_cflags,
|
|
install: true,
|
|
implicit_include_directories: false,
|
|
soversion: r2_libversion
|
|
)
|
|
|
|
r_io_dep = declare_dependency(link_with: r_io,
|
|
include_directories: platform_inc)
|
|
|
|
pkgconfig_mod.generate(r_io,
|
|
subdirs: 'libr',
|
|
version: r2_version,
|
|
name: 'r_io',
|
|
filebase: 'r_io',
|
|
libraries: pkgcfg_sanitize_libs,
|
|
requires: [
|
|
'r_util',
|
|
'r_socket'
|
|
],
|
|
description: 'radare foundation libraries'
|
|
)
|