rela.dyn section
Smith, Stephen (SWCOE)
Stephen.Smith@honeywell.com
Wed Jan 31 17:52:00 GMT 2007
Per suggestions about this problem,
I checked and I am not linking against any shared libraries and none of
the object files (or any of the object file in the static libraries) are
linked with -fpic or -fPIC. Adding -static to the linker line doesn't
seem to help either.
I guess the only choice is to change the linker script.
sps
-----Original Message-----
From: Smith, Stephen (SWCOE)
Sent: Tuesday, January 30, 2007 10:46 AM
To: 'binutils@sourceware.org'
Subject: rela.dyn section
Our group recently upgraded from 2.10 to 2.17 of the binutils package
and now we are getting the following error message:
/usr/local/powerpc-motorola-elf/bin/powerpc-motorola-elf-ld \
--output=startup.exe.with-symbols --script ../../code/startup.x \
start.o mpc8240.o mpc107.o program_env.o vga.o ns87308.o ns16550.o \
pci.o font8x16.o libmonitor.a libgdb.a libansi.a \
-L/desk/ppc/lib/gcc -lgcc
/usr/local/powerpc-motorola-elf/bin/powerpc-motorola-elf-ld: error: no
memory region specified for loadable section `.rela.dyn'
make[1]: *** [startup.exe] Error 1
I then compiled all the object files to assembly (including the ones
that are in the static libraries (*.a) and grep'ed the resultant files:
$ grep section *asm | grep dyn
$ grep section *asm | grep rel
$
I checked for the sections using a grep and there are plenty of .text,
.data, ... sections but none of the above.
What is the problem? Why do I need to define the section? Startup.exe
is designed to be burned into rom. Should .rela.dyn be part of rom or
part of ram?
More information about the Binutils
mailing list