summaryrefslogtreecommitdiff
path: root/core/syslinux.ld
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-02 17:09:41 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-02 17:09:41 -0700
commit390ab32864ad3fcbe58096a2e2fdcf6465f173fe (patch)
tree81b93bd27978c12d8e6f61f331373ba1641441d7 /core/syslinux.ld
parentc0e6f47b3219e27ba23a1bc4d19696e6d19d1682 (diff)
downloadsyslinux-390ab32864ad3fcbe58096a2e2fdcf6465f173fe.tar.gz
core: move xfer_buf_seg to segment 3, and add a collision assert
Move the xfer_buf_seg to segment 3 (0x30000) for now; this is more generous than I hope we will use but makes development easier. Add an assert to the linker script that the .auxseg/.lowmem segments don't collide with xfer_buf_seg. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/syslinux.ld')
-rw-r--r--core/syslinux.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/syslinux.ld b/core/syslinux.ld
index 44d3b548..d97cde54 100644
--- a/core/syslinux.ld
+++ b/core/syslinux.ld
@@ -204,6 +204,10 @@ SECTIONS
__high_clear_len = __high_clear_end - __high_clear_start;
__high_clear_dwords = (__high_clear_len + 3) >> 2;
+
+ __assert_high = ASSERT(__high_clear_end <= core_xfer_buf,
+ "auxseg/lowmem region collides with xfer_buf_seg");
+
/*
* 32-bit code. This is a hack for the moment due to the
* real-mode segments also allocated.