aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-11 17:06:17 +0000
committerNick Clifton <nickc@redhat.com>2005-02-11 17:06:17 +0000
commit3e25964f9b4f3a7ccdf7b9addc97fdf39df9ee63 (patch)
treee443c5a0281b8557b2d9df4ef2142a3f04506678
parent88791d55d2890c3620752d853972efe32cab2edc (diff)
downloadgdb-3e25964f9b4f3a7ccdf7b9addc97fdf39df9ee63.zip
gdb-3e25964f9b4f3a7ccdf7b9addc97fdf39df9ee63.tar.gz
gdb-3e25964f9b4f3a7ccdf7b9addc97fdf39df9ee63.tar.bz2
(coff_rtype_to_howto): Move definition before inclusion of coffcode.h so that
it is actually picked up.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/coff-tic4x.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 590943b..78411ff 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -26,6 +26,9 @@
* coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
BFD_ASSERT.
+ * coff-tic4x.c (coff_rtype_to_howto): Move definition before
+ inclusion of coffcode.h so that it is actually picked up.
+
2005-02-12 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (toc_adjusting_stub_needed): Return true for
diff --git a/bfd/coff-tic4x.c b/bfd/coff-tic4x.c
index 708e626..07f167d 100644
--- a/bfd/coff-tic4x.c
+++ b/bfd/coff-tic4x.c
@@ -68,6 +68,10 @@ ticoff_bfd_is_local_label_name (abfd, name)
The COFF1 and COFF0 vectors use custom _bad_format_hook procs
instead of setting BADMAG. */
#define BADMAG(x) COFF2_BADMAG(x)
+
+#undef coff_rtype_to_howto
+#define coff_rtype_to_howto coff_tic4x_rtype_to_howto
+
#include "coffcode.h"
static bfd_reloc_status_type
@@ -172,9 +176,6 @@ tic4x_lookup_howto (internal, dst)
abort();
}
-#undef coff_rtype_to_howto
-#define coff_rtype_to_howto coff_tic4x_rtype_to_howto
-
static reloc_howto_type *
coff_tic4x_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
bfd *abfd ATTRIBUTE_UNUSED;