This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: [Linux Binutils] 2.11.90.0.27 fails to link eCos program
- To: Richard Shih-Ping Chan <cshihpin at dso dot org dot sg>
- Subject: Re: [ECOS] [Linux Binutils] 2.11.90.0.27 fails to link eCos program
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 22 Aug 2001 10:14:23 +0100
- Cc: binutils at sources dot redhat dot com, ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <20010822170426.B11707@cshihpin.dso.org.sg>
Richard Shih-Ping Chan wrote:
> gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -L/d2/home/cshihpin/build/ecos-linux/install/lib -Ttarget.ld -o
> /d2/home/cshihpin/build/ecos-linux/install/tests/hal/common/current/tests/cache tests/cache.o
> /usr/bin/ld: warning: no memory region specified for section `.rel.data.cyg_io_serial_devio'
> /usr/bin/ld: warning: no memory region specified for section `.rel.data.tty_devio'
It's trying to generate relocations for dynamic linking despite the use of
-Wl,-static. Hmm...
> /usr/bin/ld: address 0x0 of /d2/home/cshihpin/build/ecos-linux/install/tests/hal/common/current/tests/cache section .fixup
> is not within region rom
> /usr/bin/ld: address 0x0 of /d2/home/cshihpin/build/ecos-linux/install/tests/hal/common/current/tests/cache section .gcc_except_table is not within region rom
Try putting a ". = .;" in the contents of .fixup and .gcc_except_table in
the linker script. Ld can get very stroppy about completely empty sections.
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