Repository navigation
Relic 1.4.0
Relic 1.4.0
C++ virtual calls are now resolved on ARM, MIPS, RISC-V and PowerPC, not just x86 and
AArch64. The GUI gets a window for comparing two builds, and stripped programs for those
processors get their main found more often.
Download
| System | File |
|---|---|
| Windows (x86-64) | relic-1.4.0-windows-x86_64.exe |
| Linux (x86-64) | relic-1.4.0-linux-x86_64.tar.gz: one file, relic |
| macOS, Apple silicon | relic-1.4.0-macos-arm64.zip: Relic.app |
| macOS, Intel | relic-1.4.0-macos-x86_64.zip: Relic.app |
The macOS app isn't signed, so right-click it and choose Open the first time. The wheel is
attached too, for pip (Python 3.10+). SHA256SUMS lists the hashes of every file.
New
Virtual calls on ARM, MIPS, RISC-V and PowerPC. Relic follows a C++ object from where it is
made (a constructor, a vtable stored in place, dynamic_cast, a function that returns it, an
argument) to the call through its vtable, and lists the methods that call can reach. This
covers ARM and Thumb, MIPS in both byte orders and MIPS64, RISC-V, and 32-bit and 64-bit
PowerPC (ELFv1 and ELFv2), at -O0 and -O2. The targets go into cross references and the call
graph, and argument recovery uses them.
File > Compare with older build. relic diff in the GUI. It lists the functions that
changed (most changed first), were added, were removed or stayed the same. Pick one to see
its diff in instructions or pseudocode, double-click to go to it, or port the older build's
names and comments with one button.
Fixed
- C++ classes on other processors. On ARM, vtable entries kept the Thumb bit, so virtual
methods got no names. Big-endian PowerPC64 (ELFv1) vtables point to function descriptors, so
they were read only partway. On 32-bit PowerPC without PIC, libstdc++'s typeinfo vtables are
copied into the program, and three of the five test classes were missed. - Big-endian PowerPC64 (ELFv1) glibc programs. Their call stubs weren't recognised, so no
imported function had a name, and a stripped program had nomain. mainin static, stripped programs when there are no signatures for that C library: MIPS
(both byte orders), RISC-V, ARM, 32-bit PowerPC and PowerPC64 (ELFv1 and ELFv2) now find it.relic diff --port --overwritecounted comments that were already the same as ported.
Faster
To find a callee's long double stack parameters, the decompiler looked into that callee's
callees too, which lifted most of the call graph for a single function. It now only looks at
functions that can take one (they use 80-bit values, or call one that does). The output is the
same; opening bash's main for the first time went from 34.8 to 27.8 seconds.
SHA-256
Check a download with sha256sum -c SHA256SUMS --ignore-missing (macOS: shasum -a 256 -c).
181065768827b809a0f1ddce651b2b881e0073fa24fcfb98e6f34ff94566cbc3 relic-1.4.0-linux-x86_64.tar.gz
7f5f441d77ad236a9797706202708431774d9af9aba2f7d3cc8f24de14fe6fcf relic-1.4.0-macos-arm64.zip
e8fd9b649d061d3f0b230f0569beaddbbb0e3fe396d18346f42e6b0601b7fcd9 relic-1.4.0-macos-x86_64.zip
003bbc6a0cd5dfd99ce1ea389a6d6b5047e56d807e6cbb6bc114a145bf38821b relic-1.4.0-windows-x86_64.exe
bb218299b44906f782594b6e0e437ae85ab5420171b584e93adf05f4905fc364 relic_re-1.4.0-py3-none-any.whl
e26fe651ce6d3a599ba90b9728380e2ab08a3f6871af6e70f126e96bd36cb36b relic_re-1.4.0.tar.gz