diff options
author | hpa <hpa> | 2004-12-28 06:05:14 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-12-28 06:05:14 +0000 |
commit | d12102fd89a05157672a4e4bb6e32dacd30ce27f (patch) | |
tree | 41b081f78b92b3511cc3d8d0c32ea41225d2fd62 | |
parent | 0f731f3e6652d9c64c71a421a9fbcc51053c8d69 (diff) | |
download | syslinux-d12102fd89a05157672a4e4bb6e32dacd30ce27f.tar.gz |
Add layout file
-rw-r--r-- | layout.inc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/layout.inc b/layout.inc new file mode 100644 index 00000000..0011141b --- /dev/null +++ b/layout.inc @@ -0,0 +1,55 @@ +; $Id$ +; ----------------------------------------------------------------------- +; +; Copyright 1994-2004 H. Peter Anvin - All Rights Reserved +; +; This program is free software; you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, Inc., 53 Temple Place Ste 330, +; Bostom MA 02111-1307, USA; either version 2 of the License, or +; (at your option) any later version; incorporated herein by reference. +; +; ----------------------------------------------------------------------- + +; +; layout.inc +; +; Memory layout of segments +; + + +; Memory below 0800h is reserved for the BIOS and the MBR +BSS_START equ 0800h + +; PXELINUX needs lots of BSS, so it relocates itself on startup +%if IS_PXELINUX +TEXT_START equ 9000h +%else +TEXT_START equ 7C00h +%endif + +%ifdef MAP + [map all MAP] +%endif + +; +; The various sections and their relationship +; + org TEXT_START + + ; NASM BUG: refers to hacks to handle NASM 0.98.38 bugs; might need + ; conditional compilation + + section .earlybss nobits start=BSS_START + section .bcopy32 align=4 valign=16 follows=.data vfollows=.earlybss + ; NASM BUG: follows= here should be vfollows= + section .bss nobits align=256 follows=.bcopy32 + + section .text start=TEXT_START + ; NASM BUG: follows=.text not accepted here + section .data align=16 ; follows=.text + + ; NASM BUG: We would like to do follows=.bcopy32 + section .latebss nobits align=16 start=0E000h + + |