From 19f09419682a5ef45d629f40a60f5e90fd9dc40a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 1 May 2024 16:35:15 -0400 Subject: xexcat: warn if 1st segment contains init address. --- xexcat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xexcat.c b/xexcat.c index 3ace57d..1fcd6f1 100644 --- a/xexcat.c +++ b/xexcat.c @@ -268,6 +268,11 @@ int main(int argc, char **argv) { force_load = -1; } + if(count == 1 && xex_get_init_addr(&seg) != -1) { + fprintf(stderr, SELF ": %s: warning: first segment has init address, probably bogus.\n", + infile); + } + count++; /* process -i option */ -- cgit v1.2.3