[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation of gas fails on OSF/1
From: |
Bjørn Reese |
Subject: |
Compilation of gas fails on OSF/1 |
Date: |
Thu, 18 Jul 2002 10:51:16 +0200 |
Compiling gas on OSF/1 (see exact version at the buttom) fails with
./config/tc-alpha.c:2654: warning: implicit declaration of function
`ALPHA_RELOC_TABLE'
./config/tc-alpha.c:2654: invalid type argument of `->'
The problem appears to be that ALPHA_RELOC_TABLE is only defined
if RELOC_OP_P is defined, which in turn only is defined if OBJ_ELF
is, and it isn't (OSF/1 uses COFF.)
I solved the problem with the following patch, but I am not sure
if that is correct. Furthermore, the use of ALPHA_RELOC_TABLE should
probably be better guarded.
address@hidden:...binutils/binutils-2.12/gas] diff -u config/tc-alpha.h~
config/tc-alpha.h
--- config/tc-alpha.h~ Sat Feb 9 23:55:05 2002
+++ config/tc-alpha.h Thu Jul 18 10:19:34 2002
@@ -118,7 +118,7 @@
/* Whether to add support for explict !relocation_op!sequence_number. At the
moment, only do this for ELF, though ECOFF could use it as well. */
-#ifdef OBJ_ELF
+#if defined(OBJ_ELF) || defined(OBJ_COFF)
#define RELOC_OP_P
#endif
Binutils: 2.12
Platform: alpha-dec-osf4.0d
Compiler: egcs-2.90.29 980515 (egcs-1.0.3 release)
- Compilation of gas fails on OSF/1,
Bjørn Reese <=