This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compilation problem with Redboot on assabet (no memory region specified for section .got and .got.plt)


Hi,


I try to build Redboot for assabet with network support, but the RAM image does not work. Although I followed the process described
in documentation:
"ecosconfig new assabet redboot"
"ecosconfig import hal/arm/sa11x0/assabet/current/misc/redboot_RAM.ecm"
"ecosconfig tree"

and after copying image in /tftpboot :
"load /tftpboot/redboot.srec"
"go"
and nothing...


I have also try with the redboot_ROM.ecm, but I have strange result. The size of the redboot.bin file is about 1,6MB ???

 Here is the result of objdump:

 install/bin/redboot.img:     file format elf32-littlearm

 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .rom_vectors  00000040  50000000  50000000  00000ddc  2**0
                   CONTENTS, ALLOC, LOAD, CODE
   1 .text         00012358  50000040  50000040  00000e1c  2**2
                   CONTENTS, ALLOC, LOAD, CODE
   2 .fini         00000000  50012398  50012398  000161a0  2**0
                   CONTENTS
   3 .rodata       0000233a  50012398  50012398  00013174  2**2
                   CONTENTS, ALLOC, LOAD, DATA
   4 .rodata1      00000000  500146d4  500146d4  000161a0  2**0
                   CONTENTS
   5 .fixup        00000000  500146d4  500146d4  000161a0  2**0
                   CONTENTS
   6 .gcc_except_table 00000000  500146d4  500146d4  000161a0  2**0
                   CONTENTS
   7 .fixed_vectors 00000148  00000020  00000020  000161a0  2**5
                   CONTENTS
   8 .data         00000cf0  00008000  500146d4  000154b0  2**2
                   CONTENTS, ALLOC, LOAD, DATA
   9 .got          00000008  00000000  00000000  00000dd4  2**2
                   CONTENTS, ALLOC, LOAD, DATA
  10 .got.plt      0000000c  00000008  00000008  000000d8  2**2
                   CONTENTS, ALLOC, LOAD, DATA
  11 .bss          0000bf9c  00000014  00000014  000000e4  2**4
                   ALLOC


 The only differences with the working redboot.rom are sections .got and .got.plt.
These sections also generate warning during the link: "no memory region specified for section .got".
What does it mean? The linker store these sections in 0x00000000 and 0x00000008, and pad with zero until 0x50000000. That the reason
why the .bin file is so big.

I do not have CVS access, so sources come from ftp snapshot (ftp://ftp.skynet.ie/cvs/), downloaded 2 days ago.

I use HardHat CDK 1.2 for cross compilation on a Mandrake 7.2 linux.
Is it a configuration problem ?


Thanks in advance.

 Benoit.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]