[OpenBIOS] [PATCH 5/5] Consolidate .sbss and .sbss.* sections and align them on PowerPC
Pavel Roskin
proski at gnu.org
Sun May 17 03:04:54 CEST 2009
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
--
Regards,
Pavel Roskin
More information about the OpenBIOS
mailing list