68 Commits

Author SHA1 Message Date
pancake
d3d0e8f3ec Mark all globals (or most of them) as TLS variables ##core 2022-01-21 17:04:56 +01:00
pancake
8d44558224 Use RTLD_NOW when it's possible on Linux ##core
* Fix r2ghidra 'no print languages defined' bug
2021-08-30 21:00:27 +02:00
pancake
ba375f5702 Code cleanup, somewhat related to windows code 2021-08-27 03:03:34 +02:00
pancake
d894f967e8 Add r2pm -U to upgrade all the outdated packages 2021-06-15 12:09:27 +02:00
pancake
b545c72017
Better handling of HAVE_SYSTEM, PTY, FORK, DYLINK and THREADS ##build 2021-06-10 13:52:29 +02:00
Dennis Goodlett
a414f079de
Fix abort in r_lib_open (#18416) 2021-03-04 18:16:56 +01:00
pancake
cacc508fba
Fix #18412 - Add R2_IGNVER variable to load plugins ignoring the version ##core (#18413) 2021-03-03 18:03:58 +01:00
pancake
917682ac13 Fix plugin type name array issue in Lc command 2021-01-16 03:20:20 +01:00
pancake
27a625065a
Fix #16781 - Add --without-dylink configure flag to disable libdl features ##build (#17173)
* Add `--without-dylink` configure flag to disable "libdl" features
* Add "WANT_DYLINK" option in Meson buildsystem

Co-authored-by: pancake <pancake@nopcode.org>
2020-07-02 11:58:12 +08:00
pancake
5603366182
Be consistent and make all env vars start with R2_ (#16841) 2020-05-18 13:21:50 +02:00
pancake
5621f4030d
Fix #13626 - Only check for major and minor version numbers when loading plugins #core (#16424)
* Only check for major and minor version numbers when loading plugins ##core
* Fix leak
2020-04-06 16:06:28 +08:00
Florian Märkl
683694c3f5 Fix pkgname version check for real now (#15862) 2020-01-20 11:50:22 -05:00
Florian Märkl
c01a491bd2 Check version for pkgname correctly (#15860)
dot can be null
Using R2_VERSION_MAJOR/MINOR is wrong because they will be continuously updated and we want to check for exactly 4.2.0
The version check logic itself was wrong
2020-01-20 07:36:25 -05:00
pancake
066c1277dc Fix #15833 - Only print pkgname if the plugin is for r2 >= 4.2 2020-01-19 22:54:49 -05:00
radare
31e71d340f
Add pkgname in RLibStruct for r2pm on outdated plugins ##core (#15813) 2020-01-15 09:49:41 +01:00
GustavoLCR
e43c9e7caf Fix some warnings (#15549) 2019-12-08 12:49:58 +01:00
GustavoLCR
92bbe968b2 Kill r_sys_get_osinfo () (#15346) 2019-10-24 02:20:57 +02:00
Stefan Ilic
3f41b744c6 Fix leak in lib.c (#15319) 2019-10-20 23:37:10 +02:00
radare
54036dfbbe
Implement function-based plugin loading method ##core 2019-09-30 11:21:56 +02:00
Florian Märkl
0b9edb4a4c Move Lib already loaded check before dlopen Call (#15075) ##core 2019-09-19 18:48:19 +02:00
GustavoLCR
948ac864bf Fix #14816 - Properly get lib path ##windows 2019-08-18 21:10:17 +02:00
radare
2f2e07e8f4
Some code cleanup in RUtil.lib ##core 2019-08-09 23:49:15 +02:00
pancake
4a44ff4a90 Use libswiftCore library if available to demangle Swift5 symbols ##bin 2019-07-25 13:44:27 +02:00
Anton Kochkov
b858e7e10e Fix #13430 - Kill MinGW remnants ##deprecate 2019-03-31 12:03:07 +02:00
GustavoLCR
3fba693b91 Add support for UTF console input in Windows (#13338) ##windows
* Add support for UTF console input in Windows
* Convert ANSI input to UTF-8
* Convert UTF-8 to acp when calling ANSI version of functions
* Determine if Windows console output is UTF-8 on the fly
2019-03-18 16:05:38 +08:00
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
GustavoLCR
c8a3749c73 Implement self_regions for Windows ##io 2019-02-18 16:22:30 +01:00
pancake
9e4dff5294 Add Ll as an alias for #! ##plugins 2019-01-11 15:37:46 +01:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Maijin
b60a25b914 Add more R2_ prefix for some var 2018-08-07 22:14:54 +02:00
wargio
058f63e599 fixed ldopen on linux 2018-04-21 18:17:48 +02:00
radare
b4b34e98f4
Fix loading of lang-python plugin (#9924)
Otherwise the plugin can't be loaded because of this:

dlerror(~/.config/radare2/plugins/lang_python2.dylib):
dlopen(~/.config/radare2/plugins/lang_python2.dylib, 6):
 Symbol not found: _PyUnicode_1BYTE_DATA
  Referenced from: ~/.config/radare2/plugins/lang_python2.dylib
  Expected in: flat namespace
 in ~/.config/radare2/plugins/lang_python2.dylib
2018-04-20 12:04:56 +02:00
Ayman Khamouma (ak42)
a95f9429d0 fix #9545: allow subsequently loaded cpython modules to access libpython symbols (#9570) 2018-03-05 18:16:34 +08:00
pancake
7f40f36c3a Initial draft implementation of the loader plugins for RBin 2018-01-07 21:54:41 +01:00
Jose Diaz
e74aadad28 Renaming char_to_w32 => utf8_to_utf16 2017-11-03 10:27:18 +08:00
Jose Diaz
527ff71d41 Convert char to windows unicode 2017-11-03 10:27:18 +08:00
pancake
da30f1c80c Fix invalid free with rust core plugin (wip) 2017-09-25 16:05:42 +02:00
pancake
1bfb5ffba2 Fix swprintf crash issue for mingw32 builds 2017-09-18 00:06:23 +02:00
pancake
ec6240da09 Do not load .dSYM plugins 2017-07-27 23:06:03 +02:00
pancake
139e3b8f92 Do not load plugins starting with . and remove newcomp 2017-07-26 16:35:27 +02:00
Fangrui Song
e61f5ef0a0 Add free to RLibStruct & RLibPlugin. (#7991)
radare2-bindings/libr/lang/p/python/anal.c `strdup` fields for
RAnalPlugin and they are not freed upon `r_lib_close`.
This commit adds `free` to RLibStruct & RLibPlugin with which
plugins can set their custom destructors (to free those `strdup`
fields).
2017-07-23 23:35:45 +02:00
Xiangyu Zhu
bc3555b833 Modify RLang plugins for Py2/py3 support
* Add alias field
* use RTLD_LOCAL
2017-05-28 01:50:08 +02:00
Ayman Khamouma
29aae4dd9b Fix multiple plugins loading support (#7584) 2017-05-24 12:17:20 +02:00
Ayman Khamouma
14f93d72d9 temporarly only check handler when using it (#7583) 2017-05-24 00:33:43 +02:00
pancake
079fb3e379 Fix #7559 - Fix possible null deref in r_lib_open_ptr 2017-05-23 15:26:17 +02:00
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +02:00
Marcel
a4fc91f29b Remove dirent.h dependency for Windows and add utf16<->utf8 conversion function 2017-04-15 13:07:33 +02:00
maba
459db13ef5 Remove dirent.h dependency in r_lib_opendir for windows 2017-04-11 17:13:46 +02:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00