BFD_ASSEMBLER

Ian Lance Taylor ian@wasabisystems.com
Fri Sep 26 23:31:00 GMT 2003


"Vineet Sharma, Noida" <vineets@noida.hcltech.com> writes:

> as.c:81: `SEG_REGISTER' redeclared as different kind of symbol
> as.h:292: previous declaration of `SEG_REGISTER'

Well, that seems impossible unless you define BFD_ASSEMBLER in a very
odd place, like, say, your tc-CPU.h file.

The right way to define BFD_ASSEMBLER for a new CPU is to add your CPU
to this case in gas/configure.in:

    case ${cpu_type}-${fmt} in
	alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
		| pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
		| *-elf | *-ecoff | *-som)
	    bfd_gas=yes ;;
    esac

and then use autoconf to regenerate configure.

We should probably reverse the default so that bfd_gas=yes is the
default, and old targets have to explicitly set bfd_gas=no.

Ian



More information about the Binutils mailing list