* coff-i386.c: (TWO_DATA_SECS): Don't define.
authorIan Lance Taylor <ian@airs.com>
Tue, 26 Sep 1995 17:58:38 +0000 (17:58 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 26 Sep 1995 17:58:38 +0000 (17:58 +0000)
* coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
(bfd_coff_make_section_hook): Don't define.
(coff_make_section_hook): Remove.
(sec_to_styp_flags): Remove TWO_DATA_SECS case.
(styp_to_sec_flags): Likewise.
(coff_write_object_contents): Likewise.
(bfd_coff_std_swap_table): Don't initialize make_section_hook
field.
* libcoff.h: Rebuild.
* coffgen.c (make_a_section_from_file): Just call
bfd_make_section_anyway, not bfd_make_section or
bfd_coff_make_section_hook.
* ecoff.c (_bfd_ecoff_make_section_hook): Remove.
* libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
* coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
make_section_hook field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.

bfd/ChangeLog
bfd/coffcode.h

index 338d624d4502edb38d4fe0fa690a38d2c750349a..7898cee82ceb71116fd32b08e96b9f3a7d63e0ba 100644 (file)
@@ -1,5 +1,24 @@
 Tue Sep 26 12:48:05 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * coff-i386.c: (TWO_DATA_SECS): Don't define.
+       * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
+       (bfd_coff_make_section_hook): Don't define.
+       (coff_make_section_hook): Remove.
+       (sec_to_styp_flags): Remove TWO_DATA_SECS case.
+       (styp_to_sec_flags): Likewise.
+       (coff_write_object_contents): Likewise.
+       (bfd_coff_std_swap_table): Don't initialize make_section_hook
+       field.
+       * libcoff.h: Rebuild.
+       * coffgen.c (make_a_section_from_file): Just call
+       bfd_make_section_anyway, not bfd_make_section or
+       bfd_coff_make_section_hook.
+       * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
+       * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
+       * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
+       make_section_hook field.
+       * coff-mips.c (mips_ecoff_backend_data): Likewise.
+
        * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
        pointers into value field for warning and indirect symbols; just
        leave the value field alone.
index b1814ab946bd1795d1d54f872ea1bcc6a57fa03b..11bfd35b0dbf9642c1b5e172d169fffbdad8a2cd 100644 (file)
@@ -327,12 +327,6 @@ sec_to_styp_flags (sec_name, sec_flags)
   else if (!strcmp (sec_name, _DATA))
     {
       styp_flags = STYP_DATA;
-#ifdef TWO_DATA_SECS
-    }
-  else if (!strcmp (sec_name, ".data2"))
-    {
-      styp_flags = STYP_DATA;
-#endif /* TWO_DATA_SECS */
     }
   else if (!strcmp (sec_name, _BSS))
     {
@@ -475,11 +469,7 @@ styp_to_sec_flags (abfd, hdr, name)
       else
        sec_flags |= SEC_CODE | SEC_LOAD | SEC_ALLOC;
     }
-  else if (strcmp (name, _DATA) == 0
-#ifdef TWO_DATA_SECS
-          || strcmp (name, ".data2") == 0
-#endif
-          )
+  else if (strcmp (name, _DATA) == 0)
     {
       if (sec_flags & SEC_NEVER_LOAD)
        sec_flags |= SEC_DATA | SEC_COFF_SHARED_LIBRARY;
@@ -650,9 +640,6 @@ dependent COFF routines:
 .       bfd     *abfd,
 .       PTR     internal_scnhdr,
 .       const char *name));
-. asection *(*_bfd_make_section_hook) PARAMS ((
-.       bfd     *abfd,
-.       char    *name));
 . void (*_bfd_set_alignment_hook) PARAMS ((
 .       bfd     *abfd,
 .       asection *sec,
@@ -773,9 +760,6 @@ dependent COFF routines:
 .#define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name)\
 .        ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook) (abfd, scnhdr, name))
 .
-.#define bfd_coff_make_section_hook(abfd, name)\
-.        ((coff_backend_info (abfd)->_bfd_make_section_hook) (abfd, name))
-.
 .#define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\
 .        ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr))
 .
@@ -845,22 +829,6 @@ coff_bad_format_hook (abfd, filehdr)
   return true;
 }
 
-static asection *
-coff_make_section_hook (abfd, name)
-     bfd * abfd;
-     char *name;
-{
-#ifdef TWO_DATA_SECS
-  /* FIXME: This predates the call to bfd_make_section_anyway
-     in make_a_section_from_file, and can probably go away.  */
-  /* On SCO a file created by the Microsoft assembler can have two
-     .data sections.  We use .data2 for the second one.  */
-  if (strcmp (name, _DATA) == 0)
-    return bfd_make_section (abfd, ".data2");
-#endif
-  return (asection *) NULL;
-}
-
 /*
    initialize a section structure with information peculiar to this
    particular implementation of coff
@@ -1835,12 +1803,6 @@ coff_write_object_contents (abfd)
       else if (!strcmp (current->name, _DATA))
        {
          data_sec = current;
-#ifdef TWO_DATA_SECS
-       }
-      else if (!strcmp (current->name, ".data2"))
-       {
-         data_sec = current;
-#endif /* TWO_DATA_SECS */
        }
       else if (!strcmp (current->name, _BSS))
        {
@@ -2845,8 +2807,8 @@ static CONST bfd_coff_backend_data bfd_coff_std_swap_table =
 #endif
   coff_swap_filehdr_in, coff_swap_aouthdr_in, coff_swap_scnhdr_in,
   coff_swap_reloc_in, coff_bad_format_hook, coff_set_arch_mach_hook,
-  coff_mkobject_hook, styp_to_sec_flags, coff_make_section_hook,
-  coff_set_alignment_hook, coff_slurp_symbol_table, symname_in_debug_hook,
+  coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
+  coff_slurp_symbol_table, symname_in_debug_hook,
   coff_reloc16_extra_cases, coff_reloc16_estimate,
   coff_sym_is_global, coff_compute_section_file_positions,
   coff_start_final_link, coff_relocate_section, coff_rtype_to_howto,
This page took 0.032208 seconds and 4 git commands to generate.