Ollie Lho <[EMAIL PROTECTED]> writes:
> Eric W. Biederman wrote:
>
> > Ollie Lho <[EMAIL PROTECTED]> writes:
> >
> >>Eric,
> >> After updating to your new 1.9 elf boot interface, the
> >>elf_boot.c stop before stream->init(). Is there any thing your
> >>to commit/add ??
> >>
> > The only problem I have encountered, is that I don't have an: . =
> > ALIGN(4) in the linker script before the include of the streams
> > section. I
> > have only had it in LBBL (LinuxBIOS Boot Loader) the bootloader I
> > am building from the LinuxBIOS tree. But the problem could easily
> > be more widespread.
> > A quick objdump should let you check to see if streams is a 4 byte
> > aligned section.
> >
>
>
> Does this work ??
>
> [root@ollie winfast-elf]# nm linuxbios |grep stream
> 0008514c r doc_mil_stream
> 0008515c R estreams
> 0008514b R streams
Nope streams != doc_mil_stream
So adding the alignment is definentily necessary. It looks like
my linuxBIOS builds were just lucky.
So ldscript.base needs to look like:
.rodata (.) : {
_rodata = .;
+ . = ALIGN(4);
streams = . ;
*(.rodata.streams)
estreams = .;
*(.rodata)
*(.rodata.*)
_erodata = .;
}
Eric