* 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.
This commit is contained in:
Ian Lance Taylor 1995-09-26 17:58:38 +00:00
parent fcf490c05f
commit 1af85fbbbb
2 changed files with 22 additions and 41 deletions

View 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.

View 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,