[U-Boot-Users] [newbie] U-boot linker script

Srivatsan CR Srivatsan.CR at in.flextronics.com
Tue Jun 7 09:37:58 CEST 2005


Hi all,
 
    As part of understanding of U-Boot, I was looking at customizing the
U-Boot linker scripts (With the help of "Using ld" from GNU) file as
follows:
 
(TEXT_BASE = 0x01000000)
 
a) Changed the line in u-boot.lds from ". = + SIZEOF_HEADER" to 
". = 0x1010000 + SIZEOF_HEADER 
b) Compared the map file with the change and without the change, it is seen
that there is no change in the files except the location pointer address.
c) Changed the line in u-boot.lds from ".text        :
        {
          cpu/mpc8260/start.o (.text)
          *(.text)
          *(.fixup)
          *(.got1)
          . = ALIGN(16);
          *(.rodata)
          *(.rodata1)
          *(.rodata.str1.4)
        }
 
    to ".text  .    :
        {
          cpu/mpc8260/start.o (.text)
          *(.text)
          *(.fixup)
          *(.got1)
          . = ALIGN(16);
          *(.rodata)
          *(.rodata1)
          *(.rodata.str1.4)
        }"
 
d) Compared the map file with the change and without the change, it is seen
that there is no change in the files. Shouldn't the text be relocated to the
location pointer address?
 
I am going wrong somewhere in my understanding. Can someone put me in the
right direction? Thanks.
 
With Regards,
C.R.Srivatsan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050607/48d6592f/attachment.htm 


More information about the U-Boot mailing list