This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Why does tc-or32.h define reloc_type ?
- From: Nick Clifton <nickc at redhat dot com>
- To: ivang at opencores dot org
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 21 May 2003 14:49:42 +0100
- Subject: Why does tc-or32.h define reloc_type ?
Hi Ivan,
Do you know why the file gas/config/tc-or32.h defines a value for
the symbol 'reloc_type' ?
The presence of this definition is causing the or32-coff port of gas
to fail to build in the current CVS sources because the definition of
reloc_type conflicts with its use as a field name in cfi_config
structure defined in the (new) gas/dw2gencfi.h file.
The patch below allows the port to build, but I am not sure if it
will have any unforeseen consequences for the or32-coff port.
Cheers
Nick
Index: gas/config/tc-or32.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-or32.h,v
retrieving revision 1.2
diff -c -3 -p -w -r1.2 tc-or32.h
*** gas/config/tc-or32.h 5 Sep 2002 00:01:18 -0000 1.2
--- gas/config/tc-or32.h 21 May 2003 13:58:20 -0000
***************
*** 33,39 ****
#ifdef OBJ_COFF
#define TARGET_FORMAT "coff-or32-big"
- #define reloc_type int
#endif
#define tc_unrecognized_line(c) or32_unrecognized_line (c)
--- 33,38 ----