binutils 2.18 issue with ld on 68hc11/68hc12 port

James Murray jsm@jsm-net.demon.co.uk
Sun Mar 23 19:04:00 GMT 2008


I'm not sure if this is a binutils problem or specific to my
application.

When using binutils 2.18 I get an error, but not with 2.17 or earlier.

/usr/lib/gcc-lib/m6812-elf/3.3.6-m68hc1x-20060122/../../../../m6812-elf/bin/ld: section .vectors [0000ff80 -> 0000ffff] overlaps section .bss [0000f48a -> 00010062]

The command causing this is:

/usr/bin/m6812-elf-gcc -g -Wall -Werror -O -fomit-frame-pointer
-m68hcs12 -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char
-DGCC_BUILD
-Wl,-defsym,vectors_addr=0xff80,-m,m68hc12elfb,-T,m68hc12elfb.x -o
ms2_extra.elf ms2_extra_can.o ms2_extra_can_isr.o ms2_extra_ego.o
ms2_extra_ign.o ms2_extra_ign_wheel.o ms2_extra_main.o ms2_extra_misc.o
premain.o ms2_extra_init.o sigs.o ms2_extra_ign_in.o ms2_extra_inj.o
msii_flash_gcc.o ms2_sermon.o ms2_conferr.o ms2_extra_burner.o
ms2_extra_burnfactor.o isr_inj.o isr_sci.o isr_rtc.o ms2_extra_asm.o
isr_timerovf.o isr_ign.o

I tried specifying a different start address for .bss by using -Tbss
0x3000 but got a similar error. It appears that this is the address that
earlier binutils are using though.

I've got a feeling that I'm not providing enough information here as
there's a custom m68hc12elfb.x script, but I don't want to overload the
list.

Is this a binutils problem or my code?

regards

James Murray



More information about the Binutils mailing list