* aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
[deliverable/binutils-gdb.git] / bfd / oasys.c
index 16f6b6d5adff0e3675bc95c8f733338a50b1fbf7..7749b5f212d989b4d2fb64407afac83fb8a5f11b 100644 (file)
@@ -738,14 +738,6 @@ oasys_slurp_section_data (abfd)
                                  r->symbol = 0;
                                  /* Work out the howto */
                                  abort ();
-#if 0
-                                 r->relent.section =
-                                   data->sections[reloc &
-                                                  RELOCATION_SECT_BITS];
-
-                                 r->relent.addend = -
-                                   r->relent.section->vma;
-#endif
                                  r->relent.address = dst_ptr - dst_base_ptr;
                                  r->relent.howto = &howto_table[reloc >> 6];
                                  r->relent.sym_ptr_ptr = (asymbol **) NULL;
@@ -781,10 +773,6 @@ oasys_slurp_section_data (abfd)
                                  /* Work out the howto */
                                  abort ();
 
-#if 0
-                                 r->relent.section = (asection
-                                                      *) NULL;
-#endif
                                  r->relent.addend = 0;
                                  r->relent.address = dst_ptr - dst_base_ptr;
                                  r->relent.howto = &howto_table[reloc >> 6];
@@ -891,13 +879,6 @@ oasys_canonicalize_reloc (ignore_abfd, section, relptr, symbols)
     {
       abort ();
 
-#if 0
-      if (src->relent.section == (asection *) NULL)
-       {
-         src->relent.sym_ptr_ptr = symbols + src->symbol;
-       }
-#endif
-
       *relptr++ = &src->relent;
       src = src->next;
       reloc_count++;
@@ -1228,20 +1209,9 @@ oasys_write_data (abfd)
                            }
 
                          /* Is this a section relative relocation, or a symbol
-                      relative relocation ? */
+                            relative relocation ? */
                          abort ();
 
-#if 0
-                         if (r->section != (asection *) NULL)
-                           {
-                             /* The relent has a section attached, so it must be section
-                            relative */
-                             rel_byte |= RELOCATION_TYPE_REL;
-                             rel_byte |= r->section->output_section->target_index;
-                             *dst++ = rel_byte;
-                           }
-                         else
-#endif
                            {
                              asymbol *sym = *(r->sym_ptr_ptr);
 
This page took 0.0247 seconds and 4 git commands to generate.