From: Po Lu Date: Thu, 23 May 2024 05:54:48 +0000 (+0800) Subject: ; * src/unexelf.c (unexec): Fix compiler warning. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=06077f88251e38193b4eb01bc27f8a8ba362ed2c;p=emacs.git ; * src/unexelf.c (unexec): Fix compiler warning. (cherry picked from commit ad0b9b9ab5dc58ee4e6277b642b325970c63a4f7) --- 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. */