Skip to content

Commit c9061b2

Browse files
committed
riscv64_no_seed_default: return if already pinned
1 parent 99b857f commit c9061b2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/inference/riscv64_no_seed_default.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// additional trigger can be added for the all-zero case.
3939
//
4040
// Phase: PRE_COLLECTION — access() checks need no component results.
41-
// Applicable: riscv64 only. See riscv64 H8.
41+
// Applicable: riscv64 only.
4242
// ---
4343
// <bcoles@gmail.com>
4444

@@ -82,6 +82,10 @@ static void riscv64_no_seed_default_run(struct kasld_analysis_ctx *ctx) {
8282
if (link_addr < ctx->text_base_min || link_addr > ctx->text_base_max)
8383
return;
8484

85+
/* Already pinned at this value — no-op. */
86+
if (ctx->text_base_min == link_addr && ctx->text_base_max == link_addr)
87+
return;
88+
8589
if (verbose && !quiet)
8690
fprintf(stdout,
8791
"[infer] text_base pinned by riscv64_no_seed_default:"

0 commit comments

Comments
 (0)