platform/upstream/syslinux.git
14 years agoMerge branch 'master' into elflink-merge
H. Peter Anvin [Fri, 13 Aug 2010 03:48:33 +0000 (20:48 -0700)]
Merge branch 'master' into elflink-merge

Resolved Conflicts:
core/diskfs.inc
core/mem/free.c

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoelflink: merge with master branch
Feng Tang [Fri, 13 Aug 2010 03:42:00 +0000 (20:42 -0700)]
elflink: merge with master branch

ELF modules basically work

Conflicts:
com32/Makefile
com32/lib/Makefile
com32/lua/etc/luavs.bat
core/fs/getcwd.c
core/include/fs.h
core/pmapi.c
libinstaller/syslxmod.c

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoversion: next version will be 4.03 syslinux-4.03-pre1
H. Peter Anvin [Wed, 11 Aug 2010 18:50:48 +0000 (11:50 -0700)]
version: next version will be 4.03

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocore: look for invalid MBR handover information address
H. Peter Anvin [Wed, 11 Aug 2010 17:42:51 +0000 (10:42 -0700)]
core: look for invalid MBR handover information address

The Win7 MBR doesn't provide proper handover information.  Instead, it
leaves DS:SI = 0:0x7e00, so reject that information as invalid on
grounds that it is pointed into the bootloader area.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agochain: Extra comments; shrink the new space to minimum
Gene Cumm [Sun, 1 Aug 2010 16:55:27 +0000 (12:55 -0400)]
chain: Extra comments; shrink the new space to minimum

14 years agochain: Just assign the value rather than using memcpy()
Gene Cumm [Sun, 1 Aug 2010 16:39:19 +0000 (12:39 -0400)]
chain: Just assign the value rather than using memcpy()

14 years agochain: add drmk= to usage
Gene Cumm [Sun, 1 Aug 2010 14:23:51 +0000 (10:23 -0400)]
chain: add drmk= to usage

14 years agochain: Fix up and clean up DRMK load code; fix filename length; Patch memory.
Gene Cumm [Sun, 1 Aug 2010 14:23:00 +0000 (10:23 -0400)]
chain: Fix up and clean up DRMK load code; fix filename length;  Patch memory.

14 years agochain.c32: prepare for loading DRMK
Gene Cumm [Sun, 1 Aug 2010 03:14:06 +0000 (23:14 -0400)]
chain.c32: prepare for loading DRMK

14 years agosyslxopt: remove lengthy warning message
H. Peter Anvin [Fri, 30 Jul 2010 17:20:08 +0000 (10:20 -0700)]
syslxopt: remove lengthy warning message

Remove a lengthy warning message which cause the actual command
reference to overflow a 24-line screen.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosyslxopt: fix fatal warnings
H. Peter Anvin [Fri, 30 Jul 2010 17:17:52 +0000 (10:17 -0700)]
syslxopt: fix fatal warnings

Fix fatal warnings in syslxopt.c partly due to legal but non-idiomatic
use of switch().  Since the only purpose was to conditionalize single
output statements, just do it explicitly.

In addition, since they are conditional messages, there is no need to
explain when they apply.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agochain.c: fix public index value in mbr and gpt iterators
Michal Soltys [Fri, 30 Jul 2010 06:46:07 +0000 (08:46 +0200)]
chain.c: fix public index value in mbr and gpt iterators

mbr and gpt iterators skip empty / non-data partitions properly, but don't
update publicly visible index. With this patch, such partitions are counted as
well.

Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agolibinstaller/syslxopt.c: remove unneeded usage text from certain variants.
Gene Cumm [Tue, 27 Jul 2010 22:58:46 +0000 (18:58 -0400)]
libinstaller/syslxopt.c: remove unneeded usage text from certain variants.

Gert Hulselmans noticed this.

14 years agoMake __free_tagged actually free memory
Sebastian Herbszt [Tue, 27 Jul 2010 12:46:57 +0000 (14:46 +0200)]
Make __free_tagged actually free memory

__free_tagged called by comboot_cleanup_lowmem (core/mem/free.c) doesn't
seem to work correctly. Memory allocated with lmalloc() isn't marked as free
after the allocating module exits:

boot: mem
lowmem_buf: 0x000353e0
boot: mem
lowmem_buf: 0x000553f0
boot: mem
lowmem_buf: 0x00075400
boot: mem
lowmem_buf: 0x00000000
boot:

The expected behaviour

boot: mem
lowmem_buf: 0x000353e0
boot: mem
lowmem_buf: 0x000353e0
boot: mem
lowmem_buf: 0x000353e0

can be achieved with the following patch.

14 years agocore: define and use set_flags() helper
H. Peter Anvin [Mon, 26 Jul 2010 20:57:34 +0000 (13:57 -0700)]
core: define and use set_flags() helper

Rather than opencoding the arithmetic flag mask, define an inline to
make that happen properly.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agosample: remove obsolete "raw" comboot/com32 samples
H. Peter Anvin [Mon, 26 Jul 2010 20:33:37 +0000 (13:33 -0700)]
sample: remove obsolete "raw" comboot/com32 samples

We really don't want people to write code without using the library,
so just remove these obsolete and no longer functional samples.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agolibmenu: Fix cursor on exit from showmenus()
Gene Cumm [Mon, 26 Jul 2010 19:09:43 +0000 (15:09 -0400)]
libmenu: Fix cursor on exit from showmenus()

This fixes the issue in hdt.c32 that Kent Robotti noticed where
exiting directly from Menu Mode caused the cursor to not be displayed.
This same issue also affects com32/cmenu/simple.c32 and probably
others using showmenus().

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agocore: don't hang if no config file is found
H. Peter Anvin [Mon, 26 Jul 2010 00:27:37 +0000 (17:27 -0700)]
core: don't hang if no config file is found

If we can't find a configuration file, we need to do something
slightly more friendly than hanging.

Reported-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agowin64: experimental Win64 installer (syslinux64.exe) syslinux-4.02
H. Peter Anvin [Wed, 21 Jul 2010 19:33:13 +0000 (12:33 -0700)]
win64: experimental Win64 installer (syslinux64.exe)

Experimental Win64 installer.  This is necessary to be able to run on
WinPE64, since WinPE64 doesn't support running 32-bit binaries.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agowin32: fix README, adjust broken +x bits
H. Peter Anvin [Wed, 21 Jul 2010 19:00:12 +0000 (12:00 -0700)]
win32: fix README, adjust broken +x bits

Fix the win32/README file and adjust some stray +x bits which had
crept in.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agolua: remove obsolete FIXME comment
Geert Stappers [Tue, 20 Jul 2010 22:12:36 +0000 (15:12 -0700)]
lua: remove obsolete FIXME comment

Remove an obsolete FIXME comment; the problem was caused by a stale
library.

14 years agoNEWS: document IP byte order fix. syslinux-4.02-pre5
H. Peter Anvin [Tue, 20 Jul 2010 06:45:18 +0000 (23:45 -0700)]
NEWS: document IP byte order fix.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxe: fix byte order of output from parse_dotquad()
H. Peter Anvin [Tue, 20 Jul 2010 06:42:41 +0000 (23:42 -0700)]
pxe: fix byte order of output from parse_dotquad()

parse_dotquad() incorrectly returned output in host byte order.

Reported-by: Alexander Wuerstlein <arw@arw.name>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoextlinux, linux: Ignore --force in these installers syslinux-4.02-pre4
Shao Miller [Tue, 20 Jul 2010 03:34:04 +0000 (23:34 -0400)]
extlinux, linux: Ignore --force in these installers

Previous commits described this behaviour, but did not
actually implement it. :)

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
14 years agodos: Use libinstaller option parser
Shao Miller [Tue, 20 Jul 2010 03:21:57 +0000 (23:21 -0400)]
dos: Use libinstaller option parser

We will produce an error message if a user attempts
to use an option we don't implement.

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
14 years agoelflink: comment off the size check in syslxmod.c
Feng Tang [Fri, 16 Jul 2010 08:37:21 +0000 (16:37 +0800)]
elflink: comment off the size check in syslxmod.c

14 years agoelflink: remove unneeded extlinux/ext2_fs.h
Feng Tang [Thu, 15 Jul 2010 09:52:14 +0000 (17:52 +0800)]
elflink: remove unneeded extlinux/ext2_fs.h

14 years agoelflink: remove core/printf.c
Feng Tang [Wed, 14 Jul 2010 08:44:02 +0000 (16:44 +0800)]
elflink: remove core/printf.c

14 years agoelflink: core: rename getcwd() to avoid conflict
Feng Tang [Wed, 14 Jul 2010 08:35:41 +0000 (16:35 +0800)]
elflink: core: rename getcwd() to avoid conflict

14 years agoelflink: a lot of core/fs merge
Feng Tang [Wed, 14 Jul 2010 07:55:25 +0000 (15:55 +0800)]
elflink: a lot of core/fs merge

As:
modified:   core/Makefile
modified:   core/adv.inc
modified:   core/call16.c
modified:   core/callback.inc
modified:   core/comboot.inc
modified:   core/diskstart.inc
deleted:    core/extlinux.asm
modified:   core/include/core.h
modified:   core/isolinux.asm
modified:   core/ldlinux.asm
modified:   core/pmapi.c
modified:   core/timer.inc
modified:   elf_gen_dep.sh

14 years agoelflink: merge 4.01 fs part
Feng Tang [Wed, 14 Jul 2010 06:43:01 +0000 (14:43 +0800)]
elflink: merge 4.01 fs part

changes including:

modified:   core/cmdline.inc
modified:   core/comboot.inc
modified:   core/fs/btrfs/btrfs.c
modified:   core/fs/chdir.c
modified:   core/fs/diskio.c
modified:   core/fs/fat/fat.c
modified:   core/fs/fs.c
modified:   core/fs/getfssec.c
modified:   core/fs/iso9660/iso9660.c
modified:   core/fs/lib/loadconfig.c
modified:   core/fs/pxe/dhcp_option.c
modified:   core/fs/pxe/dnsresolv.c
modified:   core/fs/pxe/idle.c
modified:   core/fs/pxe/pxe.c
modified:   core/fs/pxe/pxe.h
modified:   core/fs/readdir.c
modified:   core/include/fs.h
modified:   core/pxelinux.asm

14 years agoelflink: some change in com32/
Feng Tang [Wed, 14 Jul 2010 03:16:22 +0000 (11:16 +0800)]
elflink: some change in com32/

modified:   com32/MCONFIG
modified:   com32/Makefile
modified:   com32/mboot/map.c
modified:   com32/mboot/mboot.h
modified:   com32/menu/menu.h
modified:   com32/menu/menumain.c
modified:   com32/menu/readconfig.c
modified:   com32/modules/chain.c
modified:   com32/modules/config.c
modified:   com32/modules/elf.c
modified:   com32/modules/ifcpu.c
modified:   com32/modules/ifcpu64.c
new file:   com32/modules/ifplop.c
new file:   com32/modules/ls.c
modified:   com32/modules/pmload.c
new file:   com32/modules/pwd.c
modified:   com32/modules/sdi.c
new file:   com32/modules/whichsys.c

14 years agoelflink: add new files
Feng Tang [Wed, 14 Jul 2010 03:08:06 +0000 (11:08 +0800)]
elflink: add new files

new file:   com32/include/getopt.h
new file:   com32/include/ilog2.h
new file:   com32/lib/getopt_long.c
new file:   com32/lib/sys/sleep.c
new file:   com32/sysdump/acpi.c
new file:   com32/sysdump/be_srec.c
new file:   com32/sysdump/rbtree.c
new file:   com32/sysdump/rbtree.h
new file:   dos/getsetsl.c
new file:   dos/memmove.S
new file:   libinstaller/advio.c
new file:   libinstaller/fat.c
new file:   libinstaller/linuxioctl.h
new file:   memdisk/compiler.h
new file:   memdisk/mstructs.h
new file:   utils/memdiskfind.c

14 years agoelflink: add more change as show below
Feng Tang [Wed, 14 Jul 2010 02:57:18 +0000 (10:57 +0800)]
elflink: add more change as show below

   com32/lib/chdir.c
   com32/lib/getcwd.c
   com32/lib/getopt.c
   com32/lib/pci/scan.c
   com32/lib/sys/farcall.c
   com32/lib/sys/times.c
   com32/lib/sys/vesa/background.c
   com32/lib/sys/vesa/screencpy.c
   com32/lib/vdprintf.c
   com32/rosh/rosh.c
   com32/rosh/rosh.h
   com32/sysdump/backend.h
   com32/sysdump/be_tftp.c
   com32/sysdump/main.c
   com32/sysdump/memmap.c
   com32/sysdump/sysdump.h
   com32/sysdump/vesa.c
   doc/comboot.txt
   doc/extlinux.txt
   doc/gpt.txt
   doc/memdisk.txt
   doc/menu.txt
   doc/syslinux.txt

14 years agoelflink: prepcore: comments off size check for temp
Feng Tang [Wed, 14 Jul 2010 02:44:30 +0000 (10:44 +0800)]
elflink: prepcore: comments off size check for temp

14 years agoelflink: add zlib change
Feng Tang [Wed, 14 Jul 2010 02:41:24 +0000 (10:41 +0800)]
elflink: add zlib change

14 years agoelflink: merge these files
Feng Tang [Mon, 12 Jul 2010 07:45:05 +0000 (15:45 +0800)]
elflink: merge these files

   com32/include/sys/times.h
   com32/include/syslinux/config.h
   com32/include/syslinux/pmapi.h
   com32/include/unistd.h
   com32/include/zconf.h
   com32/include/zlib.h
   dos/Makefile
   dos/errno.h
   dos/string.h
   dos/syslinux.c
   dosutil/eltorito.asm
   dosutil/mdiskchk.c
   dosutil/mdiskchk.com
   extlinux/Makefile
   extlinux/fat.h
   extlinux/main.c
   libfat/libfat.h
   libfat/open.c
   libinstaller/Makefile
   libinstaller/setadv.c
   libinstaller/syslinux.h
   libinstaller/syslxcom.c
   libinstaller/syslxcom.h
   libinstaller/syslxint.h
   libinstaller/syslxmod.c
   libinstaller/syslxopt.c
   libinstaller/syslxopt.h
   linux/Makefile
   linux/syslinux.c

14 years agoelflink: merge libpng
Feng Tang [Mon, 12 Jul 2010 07:31:17 +0000 (15:31 +0800)]
elflink: merge libpng

14 years agoelflink: add com32/lua dir
Feng Tang [Mon, 12 Jul 2010 07:02:50 +0000 (15:02 +0800)]
elflink: add com32/lua dir

14 years agoelflink: merged gfxboot/gpllib/hdt/cmenu/ part
Feng Tang [Mon, 12 Jul 2010 06:56:43 +0000 (14:56 +0800)]
elflink: merged gfxboot/gpllib/hdt/cmenu/ part

14 years agoelflink: small modification
Feng Tang [Mon, 12 Jul 2010 06:45:25 +0000 (14:45 +0800)]
elflink: small modification

14 years agoelflink: some cleanup
Feng Tang [Thu, 1 Jul 2010 08:42:35 +0000 (16:42 +0800)]
elflink: some cleanup

14 years agoelflink: will run default item in config file after starting ui
Feng Tang [Wed, 30 Jun 2010 08:12:04 +0000 (16:12 +0800)]
elflink: will run default item in config file after starting ui

14 years agoelflink: cleanup com32/elflink/modules/cpuid.c
Feng Tang [Wed, 30 Jun 2010 08:02:49 +0000 (16:02 +0800)]
elflink: cleanup com32/elflink/modules/cpuid.c

14 years agoelflink: meminfo.c: change cs_bounce buf to lmalloc
Feng Tang [Wed, 30 Jun 2010 06:33:13 +0000 (14:33 +0800)]
elflink: meminfo.c: change cs_bounce buf to lmalloc

14 years agoelflink: add several files to com32/elflink/modules
Feng Tang [Wed, 30 Jun 2010 06:11:21 +0000 (14:11 +0800)]
elflink: add several files to com32/elflink/modules

They are meminfo/pcitest/dir/vesainfo/cpuid/cpuidtest. But not
all of their .c32 works.

One note from vesainfo.c32 is, we need change all cs_bounce usage
to lmalloc/free

14 years agoelflink: malloc cleanup
Feng Tang [Mon, 28 Jun 2010 07:14:37 +0000 (15:14 +0800)]
elflink: malloc cleanup

* remove com32/lib/malloc.h
* remove com32/elflink/test_memalign.c

14 years agoelflink: add -s option for objcopy/ld to reduce extlinux.elf size
Feng Tang [Mon, 28 Jun 2010 03:15:53 +0000 (11:15 +0800)]
elflink: add -s option for objcopy/ld to reduce extlinux.elf size

14 years agoelflink: remove hmalloc which is not needed after core/com32 malloc merged
Feng Tang [Thu, 24 Jun 2010 08:28:39 +0000 (16:28 +0800)]
elflink: remove hmalloc which is not needed after core/com32 malloc merged

14 years agoelflink: remove the malloc.c/free.c/realloc.c/zalloc.c from com32
Feng Tang [Thu, 24 Jun 2010 08:03:34 +0000 (16:03 +0800)]
elflink: remove the malloc.c/free.c/realloc.c/zalloc.c from com32

14 years agoelflink: move realloc() to core/mem/malloc.c
Feng Tang [Thu, 24 Jun 2010 07:10:56 +0000 (15:10 +0800)]
elflink: move realloc() to core/mem/malloc.c

* remove most of the functinal codes from com32 malloc/realloc code
* next step will be remove those codes from com32
* one left item is posix memalign problem and memory tag problem
  which is usded by elf module load code

14 years agoelflink: remove highmem.inc
Feng Tang [Tue, 22 Jun 2010 09:22:29 +0000 (17:22 +0800)]
elflink: remove highmem.inc

14 years agoJune 22: new mem_init works
Feng Tang [Tue, 22 Jun 2010 09:19:45 +0000 (17:19 +0800)]
June 22: new mem_init works

14 years agoelflink: modify build.sh
Feng Tang [Tue, 22 Jun 2010 06:02:21 +0000 (14:02 +0800)]
elflink: modify build.sh

14 years agoelflink: make linux kernel booting
Feng Tang [Mon, 21 Jun 2010 09:21:12 +0000 (17:21 +0800)]
elflink: make linux kernel booting

* modify execute.c to not using __com32.cs_bounce but lmalloc/lfree
* give core/malloc 32M memory

Now the kernel is loading ok, but "memdisk initrd=doshd.img" is not
working, need ask hpa if he has a new doshd.img

14 years agoelflink: We can see menu.c32 working!
Feng Tang [Fri, 18 Jun 2010 08:17:35 +0000 (16:17 +0800)]
elflink: We can see menu.c32 working!

14 years agoelflink: add early debug hook in core/diskstart.inc
Feng Tang [Fri, 18 Jun 2010 06:50:46 +0000 (14:50 +0800)]
elflink: add early debug hook in core/diskstart.inc

14 years agoelflink: modify Makefile to solve the undefined symbol problem
Feng Tang [Fri, 18 Jun 2010 05:27:31 +0000 (13:27 +0800)]
elflink: modify Makefile to solve the undefined symbol problem

* use --whole-archive to let extlinux.elf contain all the mini com32 lib
* remove several tool funcs from com32/lib/Makefile which is
  now implemented in core

14 years agoelflink: change the exit.c, remove the exit.S to make process exit working
Feng Tang [Thu, 17 Jun 2010 09:09:30 +0000 (17:09 +0800)]
elflink: change the exit.c, remove the exit.S to make process exit working

following elflink branch

14 years agoelflink: change the main func of hello.c to static
Feng Tang [Thu, 17 Jun 2010 03:57:39 +0000 (11:57 +0800)]
elflink: change the main func of hello.c to static

Otherwise it will be global and can't be searched, still don't know
the real reason

14 years agoelflink: add elf module dump func
Feng Tang [Wed, 16 Jun 2010 14:40:01 +0000 (22:40 +0800)]
elflink: add elf module dump func

14 years agoelflink: use core/malloc as the malloc system, enlarge buffer to 1MB
feng.tang@intel.com [Wed, 16 Jun 2010 13:39:52 +0000 (21:39 +0800)]
elflink: use core/malloc as the malloc system, enlarge buffer to 1MB

14 years agoelflink: modify core/Makefile for dynamic linking
feng.tang@intel.com [Wed, 16 Jun 2010 13:36:53 +0000 (21:36 +0800)]
elflink: modify core/Makefile for dynamic linking

14 years agoelflink: add modules.dep gen sh
Feng Tang [Sun, 13 Jun 2010 09:10:09 +0000 (17:10 +0800)]
elflink: add modules.dep gen sh

14 years agoelflink: make malloc works
Feng Tang [Sun, 13 Jun 2010 08:48:36 +0000 (16:48 +0800)]
elflink: make malloc works

mask the malloc of com32, will still need to change
its way of calling inject_free_block

14 years ago0613 temp debug
Feng Tang [Sun, 13 Jun 2010 06:59:50 +0000 (14:59 +0800)]
0613 temp debug

14 years agoelflink: call load_env32() in diskstart.inc
Feng Tang [Sun, 13 Jun 2010 06:43:10 +0000 (14:43 +0800)]
elflink: call load_env32() in diskstart.inc

which will initialize the console system stdin/stdout/stderr,
otherwise there will be display problem

14 years agoelflink: comment off the printf provided by core
Feng Tang [Sat, 12 Jun 2010 09:04:41 +0000 (17:04 +0800)]
elflink: comment off the printf provided by core

14 years agoelflink: modify com32/lib/Makefile to compile
Feng Tang [Tue, 8 Jun 2010 09:24:11 +0000 (17:24 +0800)]
elflink: modify com32/lib/Makefile to compile

14 years agoelflink: fix the global naming for lmalloc
Feng Tang [Tue, 8 Jun 2010 08:51:45 +0000 (16:51 +0800)]
elflink: fix the global naming for lmalloc

core and com32 both have their lmalloc definition, change com32's
from lmalloc to clmalloc

14 years agoelflink: remove the unnecessary calling of times() in rawcon_read.c
Feng Tang [Tue, 8 Jun 2010 08:51:29 +0000 (16:51 +0800)]
elflink: remove the unnecessary calling of times() in rawcon_read.c

14 years agoelflink: change cli.c/get_key.c to use times() provided in core
Feng Tang [Tue, 8 Jun 2010 08:10:39 +0000 (16:10 +0800)]
elflink: change cli.c/get_key.c to use times() provided in core

14 years agomodify core/syslinux.ld to make compile pass
Feng Tang [Tue, 8 Jun 2010 07:52:26 +0000 (15:52 +0800)]
modify core/syslinux.ld to make compile pass

14 years agoelflink: differentiate the 2 malloc system
Feng Tang [Tue, 8 Jun 2010 07:37:49 +0000 (15:37 +0800)]
elflink: differentiate the 2 malloc system

core and com32 both have their own malloc system, change the name
to make them co-exist

14 years agoelflink: fix some compile error
Feng Tang [Tue, 8 Jun 2010 07:12:32 +0000 (15:12 +0800)]
elflink: fix some compile error

14 years agoelflink: add core/hello.c
Feng Tang [Mon, 7 Jun 2010 04:05:22 +0000 (12:05 +0800)]
elflink: add core/hello.c

14 years agocore/Makefile: temp change
Feng Tang [Fri, 4 Jun 2010 08:21:22 +0000 (16:21 +0800)]
core/Makefile: temp change

14 years agoelflink: before chang core/Makefile back
Feng Tang [Thu, 3 Jun 2010 05:22:51 +0000 (13:22 +0800)]
elflink: before chang core/Makefile back

14 years agoelflink: copy some elflink related files over
Feng Tang [Thu, 3 Jun 2010 03:00:22 +0000 (11:00 +0800)]
elflink: copy some elflink related files over

also make sure the compiling passed

14 years agoelflink: start merge with pathbased branch
Feng Tang [Thu, 3 Jun 2010 02:48:22 +0000 (10:48 +0800)]
elflink: start merge with pathbased branch

modify these files to make compile pass

modified:   com32/MCONFIG
modified:   com32/Makefile
modified:   com32/include/klibc/compiler.h
modified:   com32/include/sys/elfcommon.h
modified:   com32/lib/Makefile
modified:   com32/lib/free.c
modified:   com32/lib/malloc.c

14 years agomove core/elflink over
Feng Tang [Tue, 1 Jun 2010 08:18:42 +0000 (16:18 +0800)]
move core/elflink over

14 years agodos: add .size directives to int2526.S
H. Peter Anvin [Tue, 20 Jul 2010 00:36:12 +0000 (17:36 -0700)]
dos: add .size directives to int2526.S

Add .size directives to int2526.S.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos: add .size attribute for syslinux_ldlinux_len
H. Peter Anvin [Tue, 20 Jul 2010 00:33:22 +0000 (17:33 -0700)]
dos: add .size attribute for syslinux_ldlinux_len

Just for the sake of good order, a .size attribute for
syslinux_ldlinux_len.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos: add missing file ldlinux.S
H. Peter Anvin [Tue, 20 Jul 2010 00:30:30 +0000 (17:30 -0700)]
dos: add missing file ldlinux.S

Add missing assembly wrapper for ldlinux.sys.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agowin32: remove an archive before running ar on it
H. Peter Anvin [Tue, 20 Jul 2010 00:28:25 +0000 (17:28 -0700)]
win32: remove an archive before running ar on it

Always remove an archive before ar...

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos, win32: use our own getopt_long() for both
H. Peter Anvin [Tue, 20 Jul 2010 00:23:16 +0000 (17:23 -0700)]
dos, win32: use our own getopt_long() for both

Use our own version of getopt_long() for both the DOS and Win32
installers.  Currently, on MinGW, getopt_long() is a static library,
but that could change in some installations.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos: fix non-executable files which were +x
H. Peter Anvin [Tue, 20 Jul 2010 00:15:44 +0000 (17:15 -0700)]
dos: fix non-executable files which were +x

Don't make non-executable files +x...

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agoMerge branch 'master' into libinstaller_dos_wip
H. Peter Anvin [Mon, 19 Jul 2010 23:56:35 +0000 (16:56 -0700)]
Merge branch 'master' into libinstaller_dos_wip

Resolved Conflicts:
libinstaller/syslxopt.c
mtools/syslinux.c

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos: advance the pointer correctly
H. Peter Anvin [Mon, 19 Jul 2010 23:37:00 +0000 (16:37 -0700)]
dos: advance the pointer correctly

Advance the pointer into the payload segment correctly.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos: add memcpy_from_sl() and use it where appropriate
H. Peter Anvin [Mon, 19 Jul 2010 23:29:24 +0000 (16:29 -0700)]
dos: add memcpy_from_sl() and use it where appropriate

Add memcpy_from_sl() and use it to handle pointers into the payload
section.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodos: change the link procedure to use negative pointers below DGROUP
H. Peter Anvin [Mon, 19 Jul 2010 23:17:04 +0000 (16:17 -0700)]
dos: change the link procedure to use negative pointers below DGROUP

Use negative pointer values below DGROUP, i.e. for the .payload
segment.  This makes it a lot easier to figure out if we are dealing
with pointers that shouldn't come from where they do, since the DGROUP
and .payload segments no longer overlap, and in fact are congruent.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agoNEWS: mtools, win32 uses new CLI
H. Peter Anvin [Mon, 19 Jul 2010 21:57:44 +0000 (14:57 -0700)]
NEWS: mtools, win32 uses new CLI

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agoman: update syslinux.1. It is still out of date, however.
H. Peter Anvin [Mon, 19 Jul 2010 21:55:16 +0000 (14:55 -0700)]
man: update syslinux.1.  It is still out of date, however.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agoMerge remote branch 'gerth/lua'
H. Peter Anvin [Mon, 19 Jul 2010 20:18:24 +0000 (13:18 -0700)]
Merge remote branch 'gerth/lua'

14 years agoMerge remote branch 'gerth/ifplop_comments'
H. Peter Anvin [Mon, 19 Jul 2010 20:18:14 +0000 (13:18 -0700)]
Merge remote branch 'gerth/ifplop_comments'

14 years agoMerge remote branch 'sha0/for_hpa' syslinux-4.02-pre3
H. Peter Anvin [Mon, 19 Jul 2010 17:48:15 +0000 (10:48 -0700)]
Merge remote branch 'sha0/for_hpa'

14 years agodiskio: add a paranoia cast
H. Peter Anvin [Sat, 17 Jul 2010 19:40:01 +0000 (12:40 -0700)]
diskio: add a paranoia cast

Make sure we don't overflow the shift, even though that should never
be possible.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodiskio: fix name for secpercyl field, remove unused type field
H. Peter Anvin [Sat, 17 Jul 2010 19:36:26 +0000 (12:36 -0700)]
diskio: fix name for secpercyl field, remove unused type field

Fix the name for the incorrectly named "t" (track) field; it is in
fact the sectors/cylinder (secpercyl) field.  Furthermore, remove the
completely unused "type" field... right now the pointer to the
rdwr_sectors field acts as a proxy, and if we need more complex stuff
in the future it is probably better handled by pointing to an ops
structure.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoNEWS: document EDD->CHS fallback. syslinux-4.02-pre2
H. Peter Anvin [Fri, 16 Jul 2010 23:38:16 +0000 (16:38 -0700)]
NEWS: document EDD->CHS fallback.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agodiskio: remove locally coded ilog2()
H. Peter Anvin [Fri, 16 Jul 2010 23:35:41 +0000 (16:35 -0700)]
diskio: remove locally coded ilog2()

Use the centrally coded ilog2() function.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>