This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Compilation problem with Redboot on assabet (no memory regionspecified for section .got and .got.plt)
- To: benoit dot cousson at philips dot com
- Subject: Re: [ECOS] Compilation problem with Redboot on assabet (no memory regionspecified for section .got and .got.plt)
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 05 Apr 2001 19:30:50 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <0056900017182160000002L002*@MHS>
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