From 3b5fb40d23bd34474a20106ad921ea9729ebbe97 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 5 Apr 2001 06:27:50 +0000 Subject: [PATCH] Fix the offset asserts so they actually work. --- ldlinux.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ldlinux.asm b/ldlinux.asm index 4f02fa0..d08bbd2 100644 --- a/ldlinux.asm +++ b/ldlinux.asm @@ -736,9 +736,10 @@ gls_nonewcyl: sub cx,si ; First sector on new track bailmsg: db 'Boot failed', 0Dh, 0Ah, 0 -bs_checkpt equ $ ; Must be <= 1EFh +bs_checkpt equ $ ; Must be <= 7DEFh -%if (bs_checkpt-$$) > 0x1EF +bs_checkpt_off equ ($-$$) +%if bs_checkpt_off > 1EFh %error "Boot sector overflow" %endif @@ -1047,9 +1048,10 @@ safedumpregs: jmp dumpregs %endif -rl_checkpt equ $ ; Must be <= 400h +rl_checkpt equ $ ; Must be <= 8000h -%if (rl_checkpt-$$) > 0x400 +rl_checkpt_off equ ($-$$) +%if rl_checkpt_off > 400h %error "Sector 1 overflow" %endif -- 2.7.4