[EMAIL PROTECTED] wrote:
> Author: jciccone
> Date: Fri Apr  6 00:10:20 2007
> New Revision: 3477
>
> Log:
> Update the silo fixes patch so silo builds with newer versions of bash.
>   
Bash exposed a minor and commonly made syntax error in first/Makefile. 
Byte 8 of the first stage loader should have been 0xE0 but instead it 
was 0x5C. I do not know the significance of this byte but I do know that 
without it being equal to 0xE0 there was no sign that first stage loader 
was being executed. The following change has been made to the Makefile 
in 3 places. (ultra.b, generic.b, and fd.b)

-       echo -n -e '\340' | $(DD) of=ultra.b bs=1 count=1 seek=7 conv=notrunc
+       echo -n -e '\0340' | $(DD) of=ultra.b bs=1 count=1 seek=7 conv=notrunc

According to echo's man page as well as help for bash's internal echo 
(the one being used here) the the syntax should be, "\0NNN the character 
whose ASCII code is NNN (octal)".

Because of a change in binutils-2.17 the loaders are a few bytes smaller 
then the loaders linked with binutils-2.16.1. (The .bss and .data 
sections are not present in linked the elf, they were empty anyway). 
Regardless, the code is the same and it is working again.
_______________________________________________
Clfs-dev mailing list
Clfs-dev@lists.cross-lfs.org
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to