summaryrefslogtreecommitdiffstats
path: root/dos
Commit message (Collapse)AuthorAgeFilesLines
* dos: include the ADV in the file size to be sector mappedH. Peter Anvin2010-06-251-1/+2
| | | | | | | We need to include the ADV in the size of the file that must be sector mapped. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* dos: vacuous ADV supportH. Peter Anvin2010-06-225-1/+81
| | | | | | Vacuous ADV support: install an empty ADV. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge syslinux/extlinux patch code and core codeH. Peter Anvin2010-06-202-1/+2
| | | | | | | | Merge the SYSLINUX and EXTLINUX patching code and core code, removing EXTLINUX as a separate derivative. All the disk-based systems now use the same code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Reduce sector 1 space pressure; further merge installer codeH. Peter Anvin2010-06-202-1/+101
| | | | | | | | | | Reduce sector 1 space pressure by moving objects that aren't needed by Sector 1 proper into an "extended patch area". While we're mucking with the installer code, make the syslxint and extlinux installer code even more similar. It should now be pretty straightforward to outright merge the code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Make syslinux installer real "pathbased"Alek Du2010-06-091-1/+1
| | | | | | | | | | | | | The previous merging extlinux/syslinux patch is not sufficient, the syslinux is not real "patchbased", hence: * fill currentdir in patcharea * search "extlinux.conf" and "syslinux.cfg" for generic_load_config * define boot_image and boot_sector macro for ldsyslinux this could make further merging extlinux and syslinux possible Signed-off-by: Alek Du <alek.du@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* dos: make sure we don't look like a Windows imageH. Peter Anvin2010-02-261-0/+8
| | | | | | | 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>
* Merge remote branch 'origin/master' into pathbasedH. Peter Anvin2010-02-202-272/+1
|\
| * dosutil: move copybs here, update MakefileH. Peter Anvin2010-02-152-272/+1
| | | | | | | | | | | | | | Move copybs to dosutil, change the Makefile to deal with UPX being able to compress (e.g. very small files.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into fscH. Peter Anvin2009-12-224-61/+245
|\| | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/lib/sys/open.c com32/modules/Makefile dos/Makefile dos/com16.ld dos/syslinux.c version Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: int 25/26 may be register-dirty; wrap them in assemblyH. Peter Anvin2009-11-134-31/+102
| | | | | | | | | | | | | | | | int 25h and int 26h are known to be register-dirty for some versions of DOS -- unlike int 21h, which is usually clean. As such, wrap those in assembly functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: don't add the linker script twice on the ld command lineH. Peter Anvin2009-11-111-1/+1
| | | | | | | | | | | | | | My version of the linker can deal with it, but others might not be so smart. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: drop unneeded .eh_frame sectionH. Peter Anvin2009-11-112-2/+5
| | | | | | | | | | | | gcc will produce an .eh_frame section, which we have no use for. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: always try the FAT32-aware direct I/O calls firstH. Peter Anvin2009-11-111-13/+17
| | | | | | | | | | | | | | | | Always try the FAT32-aware direct I/O calls before trying the legacy raw I/O calls. The reason for doing this is that the FAT32 stuff may be implemented as an add-on. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: DOS version 7.10 is 0x070a, not 0x0710...H. Peter Anvin2009-11-111-4/+4
| | | | | | | | | | | | | | | | | | Fix DOS version 7.10 (first FAT32-capable version) check. Perhaps we should just call the FAT32 calls blindly and fall back to the old calls if they fail? Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: fix the soft-locking loopH. Peter Anvin2009-11-101-1/+1
| | | | | | | | | | | | Code the soft-locking loop correctly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: try to handle both raw DOS mode and Windows modeH. Peter Anvin2009-11-101-31/+83
| | | | | | | | | | | | | | | | The locking API works very different in raw DOS mode and in Windows mode. The hierarchial locking is only available in the latter mode; in the former mode we can only use levels 0 and 4. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: make DOS installer work under WinMEH. Peter Anvin2009-11-102-28/+85
| | | | | | | | | | | | | | At least under WinME, the DOS installer did not work as advertised. With these modifications, it seems to work okay. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dos: add pointer to PE header in binaryH. Peter Anvin2009-07-101-0/+15
| | | | | | | | | | | | | | Explicitly add the pointer to the PE header in the binary. That way we might be eventually able to create a merged DOS/Win32 binary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dos: assume NASM 2.03, so use -MP -MD for dependenciesH. Peter Anvin2009-06-241-2/+1
| | | | | | | | | | | | Assume NASM 2.03 or later, so use -MP -MD to generate dependencies. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into core32H. Peter Anvin2009-05-2917-997/+990
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/include/netinet/in.h com32/include/sys/cpu.h dos/argv.c dos/malloc.c dos/syslinux.c extlinux/main.c libinstaller/setadv.c libinstaller/syslinux.h libinstaller/syslxint.h libinstaller/syslxmod.c linux/syslinux.c mtools/syslinux.c win32/syslinux.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/syslinux.cH. Peter Anvin2009-05-291-460/+446
| | | | | | | | | | | | | | | | | | Automatically reformat dos/syslinux.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/string.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | | | | | | | | | | Automatically reformat dos/string.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/stdlib.hH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | | | | | | | | | | Automatically reformat dos/stdlib.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/stdio.hH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | | | | | | | | | | Automatically reformat dos/stdio.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/stdint.hH. Peter Anvin2009-05-291-28/+28
| | | | | | | | | | | | | | | | | | Automatically reformat dos/stdint.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/skipatou.cH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | | | | | | | | | | Automatically reformat dos/skipatou.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/printf.cH. Peter Anvin2009-05-291-235/+246
| | | | | | | | | | | | | | | | | | Automatically reformat dos/printf.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/perror.cH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | | | | | | | | | | Automatically reformat dos/perror.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/mystuff.hH. Peter Anvin2009-05-291-3/+2
| | | | | | | | | | | | | | | | | | Automatically reformat dos/mystuff.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/malloc.hH. Peter Anvin2009-05-291-5/+5
| | | | | | | | | | | | | | | | | | Automatically reformat dos/malloc.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/malloc.cH. Peter Anvin2009-05-291-74/+73
| | | | | | | | | | | | | | | | | | Automatically reformat dos/malloc.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/free.cH. Peter Anvin2009-05-291-47/+46
| | | | | | | | | | | | | | | | | | Automatically reformat dos/free.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/conio.cH. Peter Anvin2009-05-291-11/+11
| | | | | | | | | | | | | | | | | | Automatically reformat dos/conio.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/atou.cH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | | | | | | | | | | Automatically reformat dos/atou.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/argv.cH. Peter Anvin2009-05-291-41/+41
| | | | | | | | | | | | | | | | | | Automatically reformat dos/argv.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/__udivmoddi4.cH. Peter Anvin2009-05-291-21/+21
| | | | | | | | | | | | | | | | | | Automatically reformat dos/__udivmoddi4.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/__divdi3.cH. Peter Anvin2009-05-291-15/+15
| | | | | | | | | | | | | | | | | | Automatically reformat dos/__divdi3.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dos installer: reuse ldlinux_segH. Peter Anvin2009-05-251-1/+1
| | | | | | | | | | | | | | Make ldlinux_seg a global variable, and use it in syslxmod.c. This reduces the size of syslxmod.o fairly significantly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | upx: try --lzma first, since --ultra-brute doesn't... sighH. Peter Anvin2009-05-191-1/+3
| | | | | | | | | | | | | | You'd think upx --ultra-brute would test everything that is possible, but not so. --lzma needs to be specified separately. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dos: run UPX on the DOS installer binary if we have itH. Peter Anvin2009-05-191-0/+1
| | | | | | | | | | | | | | If UPX is installed on the host system, we might as well use it to compress the DOS installer binary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dos: add a prototype for calloc()H. Peter Anvin2009-05-191-0/+1
| | | | | | | | | | | | Add a prototype for calloc() to the DOS installer library. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Standardize the names SECTOR_SIZE and SECTOR_SHIFTH. Peter Anvin2009-05-191-7/+7
| | | | | | | | | | | | | | Use the names SECTOR_SIZE and SECTOR_SHIFT everywhere, instead of an odd mix of symbols and hard-coded constants. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | FAT: change DOS installer to EXE; additional 32K limit fixesH. Peter Anvin2009-05-198-165/+262
|/ | | | | | | | | | | | | | Additional fixes for the 32K limits in the installers. In the case of the DOS installer, that means changing it from COM format to EXE format (since COM format has a 63K hard limit); retain the name syslinux.com for user compatibility, though (DOS doesn't care what the extension except for pathname search; if it finds an MZ EXE header it will use it.) With the change to EXE means having to handle more than one segment. Since we don't have a real DOS compiler we have to wing it a bit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix NASM dependency generationH. Peter Anvin2009-04-271-1/+1
| | | | | | | | | Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: MCONFIG.embeddedH. Peter Anvin2009-04-271-10/+1
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generationH. Peter Anvin2009-04-271-5/+5
| | | | | | | | | | | | Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-221-16/+2
| | | | | | Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-22/+33
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* Build _bin.c files in libinstaller; clean up B/I separationH. Peter Anvin2008-06-271-2/+4
| | | | | | | Clean up the BSUBDIR/ISUBDIR separation further. Build _bin.c files, which are an intermediate stage toward building the installers, in the libinstaller directory, since that directory is used by all the installers anyway. That also lets us get bin2c.pl out of the root.
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-292-8/+284
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.