From: H. Peter Anvin Date: Thu, 5 Jun 2008 23:37:24 +0000 (-0700) Subject: core: fail the link if we push above the 64K point X-Git-Tag: syslinux-3.70-pre13~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bccdf02682afec39d253aeec25a376c7573486d;p=platform%2Fupstream%2Fsyslinux.git core: fail the link if we push above the 64K point If the base section stuff exceeds 64K, then fail. --- 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"); }