aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-07-19 17:30:30 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-19 17:31:56 -0700
commitd35e3ee0b02bf4f9833ba6fb2969b3337c5726a5 (patch)
treeb4d2a1db471a11a33b7ea9431abf851c34b96b40 /dos
parente5f56b37f1dcb829dca09792362d3adb6e8dcfa0 (diff)
downloadsyslinux-devel-d35e3ee0b02bf4f9833ba6fb2969b3337c5726a5.tar.gz
syslinux-devel-d35e3ee0b02bf4f9833ba6fb2969b3337c5726a5.tar.xz
syslinux-devel-d35e3ee0b02bf4f9833ba6fb2969b3337c5726a5.zip
dos: add missing file ldlinux.S
Add missing assembly wrapper for ldlinux.sys. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'dos')
-rw-r--r--dos/Makefile2
-rw-r--r--dos/ldlinux.S18
2 files changed, 20 insertions, 0 deletions
diff --git a/dos/Makefile b/dos/Makefile
index 54bfb591..2667de8c 100644
--- a/dos/Makefile
+++ b/dos/Makefile
@@ -73,4 +73,6 @@ syslinux.com: syslinux.elf
%.com: %.asm
$(NASM) $(NASMOPT) -f bin -o $@ -MP -MD .$@.d -l $*.lst $<
+ldlinux.o: ldlinux.S ../core/ldlinux.sys
+
-include .*.d *.tmp
diff --git a/dos/ldlinux.S b/dos/ldlinux.S
new file mode 100644
index 00000000..197653fb
--- /dev/null
+++ b/dos/ldlinux.S
@@ -0,0 +1,18 @@
+/*
+ * Wrap ldlinux.sys; this needs special handling for DOS.
+ */
+
+ .section ".payload","aw"
+ .balign 16
+ .globl syslinux_ldlinux, syslinux_ldlinux_size
+syslinux_ldlinux:
+ .incbin "../core/ldlinux.sys"
+ .space ((syslinux_ldlinux - .) & 511)
+syslinux_ldlinux_size = . - syslinux_ldlinux
+ .size syslinux_ldlinux, .-syslinux_ldlinux
+
+ .section ".rodata","a"
+ .balign 4
+ .globl syslinux_ldlinux_len
+syslinux_ldlinux_len:
+ .long syslinux_ldlinux_size