aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-26 10:16:48 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-26 10:17:52 -0800
commit207ac40c68ca88fb758e806937ad88f52a2cae86 (patch)
tree2801b77b98a6ad147e276ba98ddc23be2988d330 /dos
parentc23f6718e3c4da8c0284a84815c09150b0d549d6 (diff)
downloadsyslinux-devel-207ac40c68ca88fb758e806937ad88f52a2cae86.tar.gz
syslinux-devel-207ac40c68ca88fb758e806937ad88f52a2cae86.tar.xz
syslinux-devel-207ac40c68ca88fb758e806937ad88f52a2cae86.zip
dos: make sure we don't look like a Windows image
Some tools might assume that the reloc offset being 64 automatically means it's really a Windows file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'dos')
-rw-r--r--dos/header.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/dos/header.S b/dos/header.S
index e7504471..83670787 100644
--- a/dos/header.S
+++ b/dos/header.S
@@ -18,6 +18,12 @@ __header_start:
.short _exe_text_seg /* CS */
.short __reloc
.short 0 /* Overlay number */
+/*
+ * Don't put these fields in unless we actually have an NE or PE image;
+ * some tools might get confused and assume __reloc = 64 automatically
+ * means an NE/PE image or a Windows image of some sort.
+ */
+#if 0
.short 0 /* Unknown/pad? */
.short 0 /* Unknown/pad? */
.short 0 /* Unknown/pad? */
@@ -35,6 +41,8 @@ __header_start:
.short 0 /* Unknown/pad? */
.short 0 /* Unknown/pad? */
.long 0 /* Pointer to Windows PE header */
+#endif
+ .balign 4
__reloc:
.balign 512
__header_end: