This is the mail archive of the binutils@sources.redhat.com 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: BFD_ASSEMBLER


"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


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