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 ---
arch/ppc/qemu/ldscript | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/ppc/qemu/ldscript b/arch/ppc/qemu/ldscript index 66fcbcd..4a697af 100644 --- a/arch/ppc/qemu/ldscript +++ b/arch/ppc/qemu/ldscript @@ -52,6 +52,13 @@ SECTIONS _ebss = .; }
+ .sbss ALIGN(4096): { + _sbss = .; + *(.sbss) + *(.sbss.*) + _esbss = .; + } + . = HRESET_ADDR;
.romentry : { *(.romentry) }