This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: 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?

.rela.dyn sounds like a shared library type of section which you don't
want if you're building a static executable to burn into ROM. Perhaps
some of your code is compiled with -fPIC or you are linking a shared
libgcc? Try adding -static to the ld command line.
-
This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm
-


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