Help again :-) ...

Lars Segerlund lars.segerlund@comsys.se
Wed May 21 13:15:00 GMT 2003


  I am trying to link two object files together into a binary file, and 
I dont understand what I am doing wrong, I am using the following command:


/home/seger/src/burk/tools/bin/m68k-elf-ld -o filter.bin cf.o main.o 
-oformat binary -Map filter.map -T sys/sys9.lds
cf.o: In function `flux_finder':
cf.o(.text+0x12): relocation truncated to fit: R_68K_GOT16O xal.4
cf.o(.text+0x16): relocation truncated to fit: R_68K_GOT16O n.3
cf.o(.text+0x20): relocation truncated to fit: R_68K_GOT16O xbe.5
cf.o(.text+0x30): relocation truncated to fit: R_68K_GOT16O yal.6
....


  With this linker script:


MEMORY {
         sram (rwxa) : ORIGIN = 0x20000000, LENGTH = 0x1ffff
         }

SECTIONS
{
         .text : { cf.o (.text);
                   main.o (.text);
                 } > sram
         .data : { cf.o (.data);
                   main.o (.data);
                 } > sram
         .bss : { cf.o (.bss);
                  main.o (.bss);
                 } > sram
}

  But I don't get an filter.bin output file ? Also I don't understand 
the  truncations, ( the meaning of them ).

  If i skip the -oformat binary I can get an filter.bin which is an 
elf32-m68k but binary should be supported, ( objdump -i names it ).

  Is there any pointer to any documentation of binutils exept for the 
info and man pages ? Perhaps some kind of tutorial ? It would be much 
needed :-) .

  / regards, Lars Segerlund.




More information about the Binutils mailing list