diff --git a/ChangeLog b/ChangeLog index 062f47938..a5a9145a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-28 Gordon Matzigkeit + + * stage2/boot.c (load_image): Don't cast entry_addr to an int, or + the top bit will be interpreted as the sign. + 2001-03-16 OKUJI Yoshinori From Bodo Rueskamp : @@ -635,7 +640,7 @@ (check_password): New function. * stage2/cmdline.c (run_script): Don't show commands that have the hidden attribute. - * stage2/buildins.c (password_type): New variable. + * stage2/builtins.c (password_type): New variable. (check_password): New function. (password_func): Handle the --md5 option and set password_type. Check if in CMDLINE or SCRIPT mode and ask password immediately. diff --git a/stage2/boot.c b/stage2/boot.c index 519766e45..beb927055 100644 --- a/stage2/boot.c +++ b/stage2/boot.c @@ -107,7 +107,7 @@ load_image (char *kernel, char *arg, kernel_t suggested_type, else entry_addr = (entry_func) (pu.elf->e_entry & 0xFFFFFF); - if (((int) entry_addr) < 0x100000) + if (entry_addr < (entry_func) 0x100000) errnum = ERR_BELOW_1MB; /* don't want to deal with ELF program header at some random