From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Richard Shih-Ping Chan Cc: binutils@sources.redhat.com, ecos-discuss@sources.redhat.com Subject: Re: [ECOS] [Linux Binutils] 2.11.90.0.27 fails to link eCos program Date: Wed, 22 Aug 2001 02:14:00 -0000 Message-id: <3B8377EF.A8E24B82@redhat.com> References: <20010822170426.B11707@cshihpin.dso.org.sg> X-SW-Source: 2001-08/msg00512.html 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