[OpenBIOS] [PATCH 5/5] Consolidate .sbss and .sbss.* sections and align them on PowerPC
Laurent Vivier
Laurent at vivier.eu
Sun May 17 19:42:28 CEST 2009
Le samedi 16 mai 2009 à 21:04 -0400, Pavel Roskin a écrit :
> On Sat, 2009-05-16 at 20:16 -0400, Pavel Roskin wrote:
> > This is needed on Fedora 11 (GNU ld 2.19.51.0.2). Otherwise, qemu
> > reports on statup:
> >
> > invalid/unsupported opcode: 00 - 18 - 01 (00004070) 00000004 1
> > invalid/unsupported opcode: 00 - 04 - 17 (000095c8) 000095ec 0
>
> Actually, I don't feel strongly about this patch. It's the first
> version that worked.
>
> I checked Linux sources (arch/powerpc/kernel/vmlinux.lds.S) and I see
> that .sbss is put to the .bss section in front of .bss itself. Perhaps
> that's what we should be doing in OpenBIOS.
>
> This patch works too:
>
> --- a/arch/ppc/qemu/ldscript
> +++ b/arch/ppc/qemu/ldscript
> @@ -46,6 +46,8 @@ SECTIONS
>
> .bss ALIGN(4096): {
> _bss = .;
> + *(.sbss)
> + *(.sbss.*)
> *(.bss)
> *(.bss.*)
> *(COMMON)
>
> The problem is discussed at
> https://bugzilla.redhat.com/show_bug.cgi?id=494075
I've applied this one as commit r488.
Thanks,
Laurent
More information about the OpenBIOS
mailing list