From 06077f88251e38193b4eb01bc27f8a8ba362ed2c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 23 May 2024 13:54:48 +0800 Subject: [PATCH] ; * src/unexelf.c (unexec): Fix compiler warning. (cherry picked from commit ad0b9b9ab5dc58ee4e6277b642b325970c63a4f7) --- src/unexelf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unexelf.c b/src/unexelf.c index feb26ffaeaf..a9a8f2d6ce9 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -306,6 +306,8 @@ unexec (const char *new_name, const char *old_name) old_bss_seg = seg; } eassume (old_bss_seg); + if (!old_bss_seg) + emacs_abort (); /* Note that old_bss_addr may be lower than the first bss section address, since the section may need aligning. */ -- 2.39.5