gcc-3.1 builds for targets sh-hms
Rekha Deshmukh
RekhaD@kpit.com
Mon May 6 03:27:00 GMT 2002
Hi all!
I tried the sh-coff and sh-hms target builds with gcc-3.1, binutils-2.12 and newlib-1.10.
Out of which sh-coff got successfully built. Even though sh-hms and sh-coff formats are said to be quite similar, sh-hms was failing in binutils-> make all with the following error-
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o depend.o dwarf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-sh.o obj-coff.o atof-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
obj-coff.o: In function `fixup_segment':
obj-coff.o(.text+0x2eca): undefined reference to `md_pcrel_from'
obj-coff.o(.text+0x2f3f): undefined reference to `md_pcrel_from'
collect2: ld returned 1 exit status
make[3]: *** [as-new] Error 1
make[3]: Leaving directory `/home/kpit/tempbuilds/build-binutils-2.12/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kpit/tempbuilds/build-binutils-2.12/gas'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/kpit/tempbuilds/build-binutils-2.12/gas'
make: *** [all-gas] Error 2
obj-coff.o when created, were having many warnings like 'function declaration isn't a prototype'. After some r&d I just added --enable-bfd-assembler option and the build came through. But I still don't know whether it is OK to use this option? In which cases it has to be used? Why it is failing without this and is successful for sh-coff?
Please help me in this matter.
Thanks & Regards
Rekha Bhintade]
KPIT Infosystems LTD
INDIA
More information about the Binutils
mailing list