Some libraries have a global "plugin_data" that is initialized only for
the current plugin, thus the fini method should only be called for the
current plugin as well and not for the others.
The term "positive" is less meaningful for %% as it is dealing only with
unsigned values. It belongs to $! and uses the exact opposite condition,
which is the value being non-zero.
* Return error codes on failures
Many rz_egg_* APIs can fail, but failures were previously ignored by rz-gg (or just logged).
Exit on failure, and attempt to detect more possible failures.
* Fix rz_egg_padding error format
* Mark failing tests as broken
This is not a perfect solution. the problem is that in big-endian environments, immediates
are encoded according to the host endianness for some reason.
In any case, add a test that the compilation does not fail completely.
another regression which was introduced in 01b6e60775
was changing the p_align header entry size from 32 to 64 bits.
this commit fixes this regression.
commit 01b6e60775 refactored the elf
interface, and in particular the elf generation process.
when generating the elf header, the base address was forgotten, causing
generated elfs to have very small base addresses (thus segfault
immediately).
this commit fixes this regression.
previously rz_sys_cmd_strf("rizin -hh | grep INCDIR | awk '{print $2}'")
was used to detect SFLIBPATH
however, in a recent commit (4707df437d)
the rz_sys_cmd_strf function no longer runs commands in shell mode
but rather in subprocess mode, which does not support pipes etc.
since rizin uses rz_path_incdir() for printing RZ_INCDIR, this logic can
be replaced with a simple call to rz_path_incdir().
* verneed vn_cnt bug fix
* versym bug fixed
* added test for elf symbol version bugs
since the bugs are just problems loading the elf files the test is just looking for a timeout
* Improve cmd_help.yaml and fix a small bug
* Add support for 64bit random numbers
* Make a distinction between 32- and 64-bit PRNG
* Add documentation for new functions
* Change the RBTree test to use 32-bit random numbers