0002-binutils-EPSON-make-it-compile-hack-for-recent-gcc.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 905ef9f159907c42104328ea9d2aedfe8095c8bb Mon Sep 17 00:00:00 2001
  2. From: Holger Freyther <ich@tamarin.(none)>
  3. Date: Fri, 12 Sep 2008 17:19:05 +0200
  4. Subject: [PATCH] [binutils] EPSON make it compile hack for recent gcc
  5. ---
  6. gas/config/tc-c33.h | 2 +-
  7. gas/write.c | 2 ++
  8. 2 files changed, 3 insertions(+), 1 deletions(-)
  9. diff --git a/gas/config/tc-c33.h b/gas/config/tc-c33.h
  10. index 98e62d2..1551339 100644
  11. --- a/gas/config/tc-c33.h
  12. +++ b/gas/config/tc-c33.h
  13. @@ -56,7 +56,7 @@ extern int c33_force_relocation PARAMS ((struct fix *));
  14. directives, so we have to parse "cons" expressions ourselves. */
  15. #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) parse_cons_expression_c33 (EXP)
  16. #define TC_CONS_FIX_NEW cons_fix_new_c33
  17. -extern const struct relax_type md_relax_table[];
  18. +//extern const struct relax_type md_relax_table[];
  19. #define TC_GENERIC_RELAX_TABLE md_relax_table
  20. /* This section must be in the small data area (pointed to by GP). */
  21. diff --git a/gas/write.c b/gas/write.c
  22. index 8386c4f..999c284 100644
  23. --- a/gas/write.c
  24. +++ b/gas/write.c
  25. @@ -26,6 +26,8 @@
  26. #include "obstack.h"
  27. #include "output-file.h"
  28. +extern const struct relax_type md_relax_table[];
  29. +
  30. /* This looks like a good idea. Let's try turning it on always, for now. */
  31. #undef BFD_FAST_SECTION_FILL
  32. #define BFD_FAST_SECTION_FILL
  33. --
  34. 1.5.4.3