]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
2005-08-18 Christian Groessler <chris@groessler.org>
authorChristian Groessler <chris@groessler.org>
Thu, 18 Aug 2005 11:54:33 +0000 (11:54 +0000)
committerChristian Groessler <chris@groessler.org>
Thu, 18 Aug 2005 11:54:33 +0000 (11:54 +0000)
* config/tc-h8300.h: Remove TC_RELOC_MANGLE/tc_reloc_mangle.
* config/tc-mcore.h: Likewise.
* config/tc-z8k.h: Likewise.
* config/tc-z8k.c: Likewise.
* config/tc-sh.h: Remove TC_RELOC_MANGLE and
sh_coff_reloc_mangle declaration.
* config/tc-sh.c: (md_apply_fix): Fix comment for case
BFD_RELOC_SH_USES.

gas/ChangeLog
gas/config/tc-h8300.h
gas/config/tc-mcore.h
gas/config/tc-sh.c
gas/config/tc-sh.h
gas/config/tc-z8k.c
gas/config/tc-z8k.h

index 7974e2fb4578f4a2aa614dc037167dbac94c99ab..ad13a437b570cbd2bccebb3b2111b89c3aced388 100644 (file)
@@ -1,3 +1,14 @@
+2005-08-18  Christian Groessler  <chris@groessler.org>
+
+       * config/tc-h8300.h: Remove TC_RELOC_MANGLE/tc_reloc_mangle.
+       * config/tc-mcore.h: Likewise.
+       * config/tc-z8k.h: Likewise.
+       * config/tc-z8k.c: Likewise.
+       * config/tc-sh.h: Remove TC_RELOC_MANGLE and
+       sh_coff_reloc_mangle declaration.
+       * config/tc-sh.c: (md_apply_fix): Fix comment for case
+       BFD_RELOC_SH_USES.
+
 2005-08-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * config/tc-sh64.c (sh64_target_format): Check preset_target_arch
index 3d928fde19a38ed546a5464b48d1023ad3bfddcd..bfc8f724c5431cb6d5a552371af493f8308fa695 100644 (file)
@@ -44,8 +44,6 @@ struct internal_reloc;
 #define IGNORE_NONSTANDARD_ESCAPES
 
 #define tc_coff_symbol_emit_hook(a) ; /* not used */
-#define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c)
-extern void tc_reloc_mangle (struct fix *, struct internal_reloc *, bfd_vma);
 
 /* No shared lib support, so we don't need to ensure externally
    visible symbols can be overridden.  */
index dc97eb56877589dc63bbb526e65ca99d2d135c0b..16346384c58fc90332e5d764626d4065f9f1a169 100644 (file)
@@ -29,8 +29,6 @@
 
 #define IGNORE_NONSTANDARD_ESCAPES
 
-#define TC_RELOC_MANGLE(a,b,c) tc_reloc_mangle (a, b, c)
-
 /* Some pseudo-op semantic extensions.  */
 #define        PSEUDO_LCOMM_OPTIONAL_ALIGN
 
index 27ccdee7321b88a3fc5d129cc21dd9a65e19e95e..b61793ded5d609b9e11b1ea170b831143048cf49 100644 (file)
@@ -3937,7 +3937,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
       break;
 
     case BFD_RELOC_SH_USES:
-      /* Pass the value into sh_coff_reloc_mangle.  */
+      /* Pass the value into sh_reloc().  */
       fixP->fx_addnumber = val;
       break;
 
index c533a87c72384deba192dc78950c43a78311d03d..c0adaa1dace445540ef055215b547d55f8b6cc6f 100644 (file)
@@ -120,12 +120,6 @@ extern void sh_frob_file (void);
 
 #define COFF_MAGIC (!target_big_endian ? SH_ARCH_MAGIC_LITTLE : SH_ARCH_MAGIC_BIG)
 
-#define TC_RELOC_MANGLE(seg, fix, int, paddr) \
-  sh_coff_reloc_mangle ((seg), (fix), (int), (paddr))
-extern void sh_coff_reloc_mangle
-  (struct segment_info_struct *, struct fix *,
-   struct internal_reloc *, unsigned int);
-
 #define tc_coff_symbol_emit_hook(a) ; /* not used */
 
 #define TC_KEEP_FX_OFFSET 1
index 3b0f6d8ab9581aa3432dde63edcd0327990f9bea..0d45f1b7f52788aa5ac51b43a5ccd56d2ed31108 100644 (file)
@@ -1540,60 +1540,3 @@ void
 tc_coff_symbol_emit_hook (symbolS *s ATTRIBUTE_UNUSED)
 {
 }
-
-void
-tc_reloc_mangle (fixS *fix_ptr, struct internal_reloc *intr, bfd_vma base)
-{
-  symbolS *symbol_ptr;
-
-  if (fix_ptr->fx_addsy
-      && fix_ptr->fx_subsy)
-    {
-      symbolS *add = fix_ptr->fx_addsy;
-      symbolS *sub = fix_ptr->fx_subsy;
-
-      if (S_GET_SEGMENT (add) != S_GET_SEGMENT (sub))
-       as_bad (_("Can't subtract symbols in different sections %s %s"),
-               S_GET_NAME (add), S_GET_NAME (sub));
-      else
-       {
-         int diff = S_GET_VALUE (add) - S_GET_VALUE (sub);
-
-         fix_ptr->fx_addsy = 0;
-         fix_ptr->fx_subsy = 0;
-         fix_ptr->fx_offset += diff;
-       }
-    }
-  symbol_ptr = fix_ptr->fx_addsy;
-
-  /* If this relocation is attached to a symbol then it's ok
-     to output it.  */
-  if (fix_ptr->fx_r_type == 0)
-    {
-      /* cons likes to create reloc32's whatever the size of the reloc.  */
-      switch (fix_ptr->fx_size)
-       {
-       case 2:
-         intr->r_type = R_IMM16;
-         break;
-       case 1:
-         intr->r_type = R_IMM8;
-         break;
-       case 4:
-         intr->r_type = R_IMM32;
-         break;
-       default:
-         abort ();
-       }
-    }
-  else
-    intr->r_type = fix_ptr->fx_r_type;
-
-  intr->r_vaddr = fix_ptr->fx_frag->fr_address + fix_ptr->fx_where + base;
-  intr->r_offset = fix_ptr->fx_offset;
-
-  if (symbol_ptr)
-    intr->r_symndx = symbol_ptr->sy_number;
-  else
-    intr->r_symndx = -1;
-}
index e48098cbd6bc629464a8bfc8eae23fefd8a5bf9a..9132ec42a575b7c8a4052c5475d377e1349d9c42 100644 (file)
@@ -31,10 +31,6 @@ struct internal_reloc;
 #define IGNORE_NONSTANDARD_ESCAPES
 #undef WARN_SIGNED_OVERFLOW_WORD
 
-#define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c)
-extern void tc_reloc_mangle
-  PARAMS ((struct fix *, struct internal_reloc *, bfd_vma));
-
 #define LISTING_HEADER "Zilog Z8000 GAS "
 #define RELOC_32 1234