[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel 2.6 for m68k/amiga



On Tue, 17 Aug 2004, Roman Zippel wrote:

> Hi,
>
> Geert Uytterhoeven wrote:
>
> > Does no one know how to tell the linker file not to put a stack program header
> > in the final object?
>
> The attached patch might help, the output looks ok, but I haven't
> actually booted the kernel yet...

I'm afraid it doesn't boot for me. Penguin hangs after logging "killing
sonic ethernet", and before logging "booting linux, fasten seatbelts
please".

I notice that the segments in the kernel image are of different sizes
before and afer this patch.

Before:

$ m68k-unknown-linux-gnu-objdump -p /tmp/boot/vmlinux-2.6.8.1

/tmp/boot/vmlinux-2.6.8.1:     file format elf32-m68k

Program Header:
    LOAD off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**13
         filesz 0x001de474 memsz 0x001f51e4 flags rwx
    LOAD off    0x001df1f0 vaddr 0x001f51f0 paddr 0x001f51f0 align 2**13
         filesz 0x00018e10 memsz 0x00018e10 flags rwx
   STACK off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
         filesz 0x00000000 memsz 0x00000000 flags rwx
private flags = 0:


After:

/Volumes/Linux/lfh/build/linux-2.6.8.1/vmlinux:     file format elf32-m68k

Program Header:
    LOAD off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**13
         filesz 0x0019c2f9 memsz 0x0019c2f9 flags r-x
    LOAD off    0x0019c2fc vaddr 0x0019c2fc paddr 0x0019c2fc align 2**13
         filesz 0x0005af94 memsz 0x00071d04 flags rw-
private flags = 0:


Anyway, maybe amiboot will be OK?

-F


> bye, Roman
>



Reply to: