core: fail the link if we push above the 64K point
authorH. Peter Anvin <hpa@zytor.com>
Thu, 5 Jun 2008 23:37:24 +0000 (16:37 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 5 Jun 2008 23:37:24 +0000 (16:37 -0700)
If the base section stuff exceeds 64K, then fail.

core/syslinux.ld

index 3c55820..66ea5e5 100644 (file)
@@ -116,4 +116,6 @@ SECTIONS
        }
        __bss1_len = __bss1_end - __bss1_start;
        __bss1_dwords = (__bss1_len + 3) >> 2;
+
+       . = ASSERT(__bss1_end <= 0x10000, "64K overflow");
 }