* aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
[deliverable/binutils-gdb.git] / bfd / coffgen.c
index a2b0d5d0ddc2942f984c4cd6e9bb7c16855074ef..4b87b9bd4028432c48f0a7779dbfd484bcc161a1 100644 (file)
@@ -1127,28 +1127,9 @@ coff_write_native_symbol (abfd, symbol, written, string_size_p,
       count++;
       while (lineno[count].line_number != 0)
        {
-#if 0
-         /* 13 april 92. sac
-            I've been told this, but still need proof:
-            > The second bug is also in `bfd/coffcode.h'.  This bug
-            > causes the linker to screw up the pc-relocations for
-            > all the line numbers in COFF code.  This bug isn't only
-            > specific to A29K implementations, but affects all
-            > systems using COFF format binaries.  Note that in COFF
-            > object files, the line number core offsets output by
-            > the assembler are relative to the start of each
-            > procedure, not to the start of the .text section.  This
-            > patch relocates the line numbers relative to the
-            > `native->u.syment.n_value' instead of the section
-            > virtual address.
-            > modular!olson@cs.arizona.edu (Jon Olson)
-          */
-         lineno[count].u.offset += native->u.syment.n_value;
-#else
          lineno[count].u.offset +=
            (symbol->symbol.section->output_section->vma
             + symbol->symbol.section->output_offset);
-#endif
          count++;
        }
       symbol->done_lineno = TRUE;
@@ -1417,59 +1398,6 @@ coff_get_lineno (ignore_abfd, symbol)
   return coffsymbol (symbol)->lineno;
 }
 
-#if 0
-
-/* This is only called from coff_add_missing_symbols, which has been
-   disabled.  */
-
-asymbol *
-coff_section_symbol (abfd, name)
-     bfd *abfd;
-     char *name;
-{
-  asection *sec = bfd_make_section_old_way (abfd, name);
-  asymbol *sym;
-  combined_entry_type *csym;
-
-  sym = sec->symbol;
-  csym = coff_symbol_from (abfd, sym)->native;
-  /* Make sure back-end COFF stuff is there.  */
-  if (csym == 0)
-    {
-      struct foo
-       {
-         coff_symbol_type sym;
-         /* @@FIXME This shouldn't use a fixed size!!  */
-         combined_entry_type e[10];
-       };
-      struct foo *f;
-
-      f = (struct foo *) bfd_zalloc (abfd, (bfd_size_type) sizeof (*f));
-      if (!f)
-       {
-         bfd_set_error (bfd_error_no_error);
-         return NULL;
-       }
-      coff_symbol_from (abfd, sym)->native = csym = f->e;
-    }
-  csym[0].u.syment.n_sclass = C_STAT;
-  csym[0].u.syment.n_numaux = 1;
-/*  SF_SET_STATICS (sym);       @@ ??? */
-  csym[1].u.auxent.x_scn.x_scnlen = sec->size;
-  csym[1].u.auxent.x_scn.x_nreloc = sec->reloc_count;
-  csym[1].u.auxent.x_scn.x_nlinno = sec->lineno_count;
-
-  if (sec->output_section == NULL)
-    {
-      sec->output_section = sec;
-      sec->output_offset = 0;
-    }
-
-  return sym;
-}
-
-#endif /* 0 */
-
 /* This function transforms the offsets into the symbol table into
    pointers to syments.  */
 
This page took 0.025705 seconds and 4 git commands to generate.