bs_checkpt equ $ ; Must be <= 1EFh
+%if (bs_checkpt-$$) > 0x1EF
+%error "Boot sector overflow"
+%endif
+
zb 1EFh-($-$$)
bs_magic equ $ ; From here to the magic_len equ
; must match ldlinux_magic
rl_checkpt equ $ ; Must be <= 400h
+%if (rl_checkpt-$$) > 0x400
+%error "Sector 1 overflow"
+%endif
+
; ----------------------------------------------------------------------------
; End of code and data that have to be in the first sector
; ----------------------------------------------------------------------------