aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-26 17:58:38 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-26 17:58:38 +0000
commit1af85fbbbbb2de5b1ff134d977aebeadf83d5037 (patch)
treed3588ee4048b0ba2e8c90c0ad9b6f7bf55ab4348 /bfd/coffcode.h
parentfcf490c05f5bfe2a302c3309f51a863606a2a972 (diff)
downloadfsf-binutils-gdb-1af85fbbbbb2de5b1ff134d977aebeadf83d5037.zip
fsf-binutils-gdb-1af85fbbbbb2de5b1ff134d977aebeadf83d5037.tar.gz
fsf-binutils-gdb-1af85fbbbbb2de5b1ff134d977aebeadf83d5037.tar.bz2
* 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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h44
1 files changed, 3 insertions, 41 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index b1814ab..11bfd35 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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,