Embedded Kernel Linking question

From: Bob Beck (beck_at_assurtech.com)
Date: 03/10/04


Date: 10 Mar 2004 05:55:54 -0800

In the arch/ppc/boot directory, one of the linker
options is "-Ttext 0x00800000".

What does this mean ?

The base virtual address of the kernel is c0000000.

I've been using my own hand-rolled bootloader to
load the zImage.bin file into an address allocated
by the VxWorks malloc and jumping to that address.

Second question.

arch/ppc/boot/simple/head.S says it expects the load address
in r3. It seems strange that it would need its own (start)
starting address. What is this routine expecting ?

Regards,
Bob Beck



Relevant Pages

  • Re: Why is my nasm program killing itself?
    ... The binary should be killed in any kernel version (it is not conforming ... how many Linux distributions used ... this buggy linker (or maybe the linker doesn't have a bug but the object ... file generated by the assembler isn't correct and newer versions of the ...
    (alt.lang.asm)
  • Re: Debian
    ... > What I am most concerned about is getting help with the Debian ... It returns an error trouble linking kernel. ... >> linker but the kernel source. ... > rather a bug in the kernel source. ...
    (Debian-User)
  • Re: [rfc 08/45] cpu alloc: x86 support
    ... Why is it not possible to move the kernel lower while keeping bit 31 1? ... you could ever save with the per cpu data in your fast paths. ... Another one I came up in the previous mail would be to do the linker reference ...
    (Linux-Kernel)
  • Re: debian package install problem
    ... > due to some difficulties cannot seem able to install packages. ... It returns an error trouble linking kernel. ... > linker but the kernel source. ... > have CDs from a endor with a link on a Debian wedsite. ...
    (Debian-User)