From 3bccdf02682afec39d253aeec25a376c7573486d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 5 Jun 2008 16:37:24 -0700 Subject: [PATCH] core: fail the link if we push above the 64K point If the base section stuff exceeds 64K, then fail. --- core/syslinux.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/syslinux.ld b/core/syslinux.ld index 3c55820..66ea5e5 100644 --- a/core/syslinux.ld +++ b/core/syslinux.ld @@ -116,4 +116,6 @@ SECTIONS } __bss1_len = __bss1_end - __bss1_start; __bss1_dwords = (__bss1_len + 3) >> 2; + + . = ASSERT(__bss1_end <= 0x10000, "64K overflow"); } -- 2.7.4