From: Po Lu Date: Thu, 23 May 2024 05:54:48 +0000 (+0800) Subject: ; * src/unexelf.c (unexec): Fix compiler warning. X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~1393 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ad0b9b9ab5dc58ee4e6277b642b325970c63a4f7;p=emacs.git ; * src/unexelf.c (unexec): Fix compiler warning. --- 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. */