On Tue, 2009-02-24 at 22:27 +0200, Blue Swirl wrote:
Would this patch fix the problem?
Doesn't look like it. After patching and make clean, I see the same warning from strip, and basically the same output:
# tail obj-ppc/build.log [...] powerpc-440-linux-gnu-ld --warn-common -N -T ../arch/ppc/qemu/ldscript target/arch/ppc/qemu/start.o target/arch/ppc/timebase.o libqemu.a libbootstrap.a libdrivers.a libmodules.a liblibc.a libfs.a libgcc.a -o openbios-qemu.elf powerpc-440-linux-gnu-nm openbios-qemu.elf | sort > ./openbios-qemu.syms cp openbios-qemu.elf openbios-qemu.elf.nostrip powerpc-440-linux-gnu-strip openbios-qemu.elf BFD: stzD2J6q: warning: allocated section `.bss' not in segment BFD: stzD2J6q: warning: allocated section `.sbss' not in segment
# readelf -l obj-ppc/openbios-qemu.elf*
File: obj-ppc/openbios-qemu.elf
Elf file type is EXEC (Executable file) Entry point 0xfff08000 There are 3 program headers, starting at offset 52
Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000094 0xfff00000 0xfff00000 0x100000 0x100000 RWE 0x4 LOAD 0x100094 0xfffffffc 0xfffffffc 0x00004 0x00004 R E 0x1 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
Section to Segment mapping: Segment Sections... 00 .text.vectors .text .rodata .data .bss .sbss 01 .romentry 02
File: obj-ppc/openbios-qemu.elf.nostrip
Elf file type is EXEC (Executable file) Entry point 0xfff08000 There are 3 program headers, starting at offset 52
Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000094 0xfff00000 0xfff00000 0x42044 0x4bcb4 RWE 0x4 LOAD 0x0420d8 0xfffffffc 0xfffffffc 0x00004 0x00004 R E 0x1 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
Section to Segment mapping: Segment Sections... 00 .text.vectors .text .rodata .data 01 .romentry 02