Ishmam Ahmed
78634fb0a9
feat(relinker): support --trace-imports for Linux output
...
The Linux entry stub now passes each traced import through libc.prx's
TraceImport_nid_no_patch before it calls the guest entry, and stores the
returned thunk in the import's slot. The same imports are traced as on
Windows: functions bound through a PLT slot or a GOT slot, without an
addend, and not weak. TraceImport_nid_no_patch is bound eagerly through
an added GLOB_DAT relocation, so a libc.prx without it fails at load.
Each slot's page is made writable with mprotect first, so slots inside a
PT_GNU_RELRO range can be replaced.
--trace-imports now requires libc.prx among the libraries on Linux too,
and is refused with --macos.
2026-10-19 22:56:03 +01:00
..
2026-10-19 22:56:02 +01:00
2026-10-19 10:18:13 +02:00
2026-10-20 09:21:54 +13:00
2026-10-19 14:34:35 +05:30
2026-10-19 19:44:00 +02:00
2026-10-19 23:43:48 +02:00
2026-10-17 16:40:32 +02:00
2026-10-17 19:23:26 -03:00
2026-10-14 18:44:42 +00:00
2026-10-19 08:28:58 +01:00
2026-10-16 21:41:16 +02:00
2026-10-18 18:52:36 +02:00
2026-10-19 14:34:26 +02:00
2026-10-16 09:28:43 -05:00
2026-10-19 08:28:58 +01:00
2026-10-14 14:38:36 +01:00
2026-10-19 08:28:58 +01:00
2026-10-18 21:41:40 +02:00
2026-10-19 10:55:39 +05:30
2026-10-16 20:24:35 +02:00
2026-10-15 20:54:46 +05:30
2026-10-14 20:47:25 +02:00
2026-10-14 18:44:41 +00:00
2026-10-18 15:29:08 +02:00
2026-10-15 15:52:17 +03:00
2026-10-14 22:11:08 +05:30
2026-10-19 12:16:20 +02:00
2026-10-14 11:49:12 +02:00
2026-10-19 23:52:45 +13:00
2026-10-15 15:45:56 +02:00
2026-10-15 19:52:28 +02:00
2026-10-18 02:14:02 +02:00
2026-10-19 14:34:26 +02:00
2026-10-16 06:52:37 -05:00
2026-10-18 22:37:14 +02:00
2026-10-19 16:30:21 +02:00
2026-10-15 18:43:15 +02:00
2026-10-16 22:10:10 +02:00
2026-10-18 00:39:01 +05:30
2026-10-20 05:53:14 +13:00
2026-10-19 12:10:02 +02:00
2026-10-19 21:52:05 +02:00
2026-10-19 16:28:46 +02:00
2026-10-15 07:39:34 +13:00
2026-10-19 11:16:04 +00:00
2026-10-19 09:22:26 +02:00
2026-10-18 18:57:53 +02:00
2026-10-14 22:48:13 +02:00
2026-10-17 18:14:12 +05:30
2026-10-17 23:30:58 +00:00
2026-10-19 08:27:08 +02:00
2026-10-17 23:29:24 +00:00
2026-10-14 22:11:11 +05:30
2026-10-14 20:22:47 +09:00
2026-10-15 00:06:48 +03:00
2026-10-20 05:24:48 +13:00
2026-10-18 10:01:34 +05:30
2026-10-15 11:48:51 +05:30
2026-10-19 16:58:33 +02:00
2026-10-19 10:36:50 +00:00
2026-10-18 03:54:32 +05:30
2026-10-16 20:41:44 +02:00
2026-10-17 13:06:46 +13:00
2026-10-19 08:29:42 +01:00
2026-10-19 15:55:05 +05:30
2026-10-19 15:01:06 +02:00
2026-10-18 09:42:13 +05:30
2026-10-17 23:56:59 +05:30
2026-10-19 08:28:58 +01:00
2026-10-18 22:17:37 -04:00
2026-10-19 08:28:58 +01:00
2026-10-19 10:51:17 +05:30
2026-10-18 00:01:22 +05:30
2026-10-19 16:05:00 +02:00
2026-10-16 20:51:06 +02:00
2026-10-19 11:00:59 +05:30
2026-10-19 10:37:19 +00:00
2026-10-16 23:38:37 +02:00
2026-10-19 09:58:14 +02:00
2026-10-19 04:49:51 +02:00
2026-10-19 11:13:20 +05:30
2026-10-18 15:58:47 +05:30
2026-10-19 11:39:06 +05:30
2026-10-18 22:06:03 +05:30
2026-10-19 09:10:42 +05:30
2026-10-19 08:28:58 +01:00
2026-10-16 20:47:40 +02:00
2026-10-19 22:56:03 +01:00
2026-10-20 09:22:37 +13:00