summaryrefslogtreecommitdiffhomepage
path: root/src/driver/pe_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-18 04:47:07 +0000
committermidipix <writeonce@midipix.org>2025-06-18 04:47:07 +0000
commit733dcf7478d466eac6bfef09efee476d43679787 (patch)
treebb6cf0ebcfd723ebb5d844796f3ef20549bf5259 /src/driver/pe_driver_ctx.c
parentc5998808867bf8209722357c745508c592d337cf (diff)
downloadperk-733dcf7478d466eac6bfef09efee476d43679787.tar.bz2
perk-733dcf7478d466eac6bfef09efee476d43679787.tar.xz
driver: added the --relocs switch (image base relocations).
Diffstat (limited to 'src/driver/pe_driver_ctx.c')
-rw-r--r--src/driver/pe_driver_ctx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index 6a260bd..9e6a17e 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -251,6 +251,10 @@ static int pe_cctx_update(
cctx->fmtflags |= PERK_OUTPUT_IMAGE_STRINGS;
break;
+ case TAG_RELOCS:
+ cctx->fmtflags |= PERK_OUTPUT_BASE_RELOCS;
+ break;
+
case TAG_EXPSYMS:
cctx->fmtflags |= PERK_OUTPUT_EXPORT_SYMS;
break;