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]

Re: [Linux Binutils] 2.11.90.0.27 fails to link eCos program


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


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