* Makefile.in (SFILES): Add cp-names.y.
[deliverable/binutils-gdb.git] / bfd / ieee.c
index ac0dcc3798fdfd4b7a213516b1f19f0f8744f7f4..d0526b9aae90cd298610f7b962f2a1fc866cbc53 100644 (file)
@@ -1,6 +1,6 @@
 /* BFD back-end for ieee-695 objects.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004
+   2000, 2001, 2002, 2003, 2004, 2005
    Free Software Foundation, Inc.
 
    Written by Steve Chamberlain of Cygnus Support.
@@ -935,9 +935,8 @@ ieee_slurp_external_symbols (abfd)
                    break;
                  default:
                    (*_bfd_error_handler)
-                     (_("%s: unimplemented ATI record %u for symbol %u"),
-                      bfd_archive_filename (abfd), symbol_attribute_def,
-                      symbol_name_index);
+                     (_("%B: unimplemented ATI record %u for symbol %u"),
+                      abfd, symbol_attribute_def, symbol_name_index);
                    bfd_set_error (bfd_error_bad_value);
                    return FALSE;
                    break;
@@ -960,8 +959,8 @@ ieee_slurp_external_symbols (abfd)
                if (value != 0x3f)
                  {
                    (*_bfd_error_handler)
-                     (_("%s: unexpected ATN type %d in external part"),
-                        bfd_archive_filename (abfd), (int) value);
+                     (_("%B: unexpected ATN type %d in external part"),
+                        abfd, (int) value);
                    bfd_set_error (bfd_error_bad_value);
                    return FALSE;
                  }
@@ -982,8 +981,7 @@ ieee_slurp_external_symbols (abfd)
 
                      default:
                        (*_bfd_error_handler)
-                         (_("%s: unexpected type after ATN"),
-                            bfd_archive_filename (abfd));
+                         (_("%B: unexpected type after ATN"), abfd);
                        bfd_set_error (bfd_error_bad_value);
                        return FALSE;
                      }
@@ -1803,10 +1801,6 @@ ieee_print_symbol (abfd, afile, symbol, how)
       fprintf (file, "%s", symbol->name);
       break;
     case bfd_print_symbol_more:
-#if 0
-      fprintf (file, "%4x %2x", aout_symbol (symbol)->desc & 0xffff,
-              aout_symbol (symbol)->other & 0xff);
-#endif
       BFD_FAIL ();
       break;
     case bfd_print_symbol_all:
@@ -2318,11 +2312,6 @@ ieee_write_section_part (abfd)
 
          if (! ieee_write_id (abfd, s->name))
            return FALSE;
-#if 0
-         ieee_write_int (abfd, 0);     /* Parent */
-         ieee_write_int (abfd, 0);     /* Brother */
-         ieee_write_int (abfd, 0);     /* Context */
-#endif
          /* Alignment.  */
          if (! ieee_write_byte (abfd, ieee_section_alignment_enum)
              || ! ieee_write_byte (abfd,
@@ -2473,10 +2462,6 @@ do_with_relocs (abfd, s)
                {
                  arelent *r = *p;
                  bfd_signed_vma ov;
-#if 0
-                 if (r->howto->pc_relative)
-                   r->addend += current_byte_index;
-#endif
                  switch (r->howto->size)
                    {
                    case 2:
@@ -3940,68 +3925,6 @@ ieee_sizeof_headers (abfd, x)
   return 0;
 }
 
-
-/* The debug info routines are never used.  */
-#if 0
-
-static void
-ieee_bfd_debug_info_start (abfd)
-     bfd *abfd;
-{
-
-}
-
-static void
-ieee_bfd_debug_info_end (abfd)
-     bfd *abfd;
-{
-
-}
-
-
-/* Add this section to the list of sections we have debug info for, to
-   be ready to output it at close time.  */
-static void
-ieee_bfd_debug_info_accumulate (abfd, section)
-     bfd *abfd;
-     asection *section;
-{
-  ieee_data_type *ieee = IEEE_DATA (section->owner);
-  ieee_data_type *output_ieee = IEEE_DATA (abfd);
-
-  /* Can only accumulate data from other ieee bfds.  */
-  if (section->owner->xvec != abfd->xvec)
-    return;
-  /* Only bother once per bfd.  */
-  if (ieee->done_debug)
-    return;
-  ieee->done_debug = TRUE;
-
-  /* Don't bother if there is no debug info.  */
-  if (ieee->w.r.debug_information_part == 0)
-    return;
-
-  /* Add to chain.  */
-  {
-    bfd_size_type amt = sizeof (bfd_chain_type);
-    bfd_chain_type *n = (bfd_chain_type *) bfd_alloc (abfd, amt);
-
-    if (!n)
-      abort ();                /* FIXME */
-    n->this = section->owner;
-    n->next = (bfd_chain_type *) NULL;
-
-    if (output_ieee->chain_head)
-      output_ieee->chain_head->next = n;
-    else
-      output_ieee->chain_root = n;
-
-    output_ieee->chain_head = n;
-  }
-}
-
-#endif
-
 #define        ieee_close_and_cleanup _bfd_generic_close_and_cleanup
 #define ieee_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
 
@@ -4020,6 +3943,8 @@ ieee_bfd_debug_info_accumulate (abfd, section)
 #define ieee_update_armap_timestamp bfd_true
 #define ieee_get_elt_at_index _bfd_generic_get_elt_at_index
 
+#define ieee_bfd_is_target_special_symbol  \
+  ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
 #define ieee_bfd_is_local_label_name bfd_generic_is_local_label_name
 #define ieee_get_lineno _bfd_nosymbols_get_lineno
 #define ieee_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
@@ -4039,6 +3964,8 @@ ieee_bfd_debug_info_accumulate (abfd, section)
 #define ieee_bfd_merge_sections bfd_generic_merge_sections
 #define ieee_bfd_is_group_section bfd_generic_is_group_section
 #define ieee_bfd_discard_group bfd_generic_discard_group
+#define ieee_section_already_linked \
+  _bfd_generic_section_already_linked
 #define ieee_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
 #define ieee_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
 #define ieee_bfd_link_add_symbols _bfd_generic_link_add_symbols
This page took 0.026961 seconds and 4 git commands to generate.