* [ECOS] Compilation problem with Redboot on assabet (no memory region specified for section .got and .got.plt)
@ 2001-04-05 11:17 benoit.cousson
2001-04-05 11:31 ` [ECOS] Compilation problem with Redboot on assabet (no memory regionspecified " Jonathan Larmour
0 siblings, 1 reply; 3+ messages in thread
From: benoit.cousson @ 2001-04-05 11:17 UTC (permalink / raw)
To: ecos-discuss
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] Compilation problem with Redboot on assabet (no memory regionspecified for section .got and .got.plt)
2001-04-05 11:17 [ECOS] Compilation problem with Redboot on assabet (no memory region specified for section .got and .got.plt) benoit.cousson
@ 2001-04-05 11:31 ` Jonathan Larmour
2001-04-05 11:42 ` [ECOS] Compilation problem with Redboot on assabet (no memor Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Larmour @ 2001-04-05 11:31 UTC (permalink / raw)
To: benoit.cousson; +Cc: ecos-discuss
benoit.cousson@philips.com wrote:
>
> 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 ?
At a guess those tools are linux tools and have a configuration that forces
the .got* sections to appear.
Add them to the linker script target.ld in install/lib in your build
directory in a similar way to the other sections (sorry, yes I know that
that file is ugly). They won't be used, but it will keep the linker happy.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] Compilation problem with Redboot on assabet (no memor
2001-04-05 11:31 ` [ECOS] Compilation problem with Redboot on assabet (no memory regionspecified " Jonathan Larmour
@ 2001-04-05 11:42 ` Gary Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2001-04-05 11:42 UTC (permalink / raw)
To: Jonathan Larmour; +Cc: ecos-discuss, benoit.cousson
On 05-Apr-2001 Jonathan Larmour wrote:
> benoit.cousson@philips.com wrote:
>>
>> 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 ?
>
> At a guess those tools are linux tools and have a configuration that forces
> the .got* sections to appear.
>
> Add them to the linker script target.ld in install/lib in your build
> directory in a similar way to the other sections (sorry, yes I know that
> that file is ugly). They won't be used, but it will keep the linker happy.
Maybe. The fact that they have something in them scares me.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-04-05 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-05 11:17 [ECOS] Compilation problem with Redboot on assabet (no memory region specified for section .got and .got.plt) benoit.cousson
2001-04-05 11:31 ` [ECOS] Compilation problem with Redboot on assabet (no memory regionspecified " Jonathan Larmour
2001-04-05 11:42 ` [ECOS] Compilation problem with Redboot on assabet (no memor Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).