* nlmconv.c (main): Change uses of bfd_abs_section, etc., to use

bfd_abs_section_ptr or bfd_is_abs_section, etc.
	(i386_mangle_relocs, alpha_mangle_relocs): Likewise.
	(powerpc_build_stubs): Likewise.
	* nm.c (filter_symbols, print_symbols): Likewise.
	* objcopy.c (filter_symbols): Likewise.
	(mark_symbols_used_in_relocations): Likewise.
	* objdump.c (remove_useless_symbols, dump_relocs): Likewise.
	* size.c (sysv_internal_printer): Likewise.
This commit is contained in:
Ian Lance Taylor 1994-06-21 17:20:20 +00:00
parent c098f9751b
commit a18ff4a730
2 changed files with 18 additions and 6 deletions

View file

@ -1,3 +1,15 @@
Tue Jun 21 12:53:21 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
bfd_abs_section_ptr or bfd_is_abs_section, etc.
(i386_mangle_relocs, alpha_mangle_relocs): Likewise.
(powerpc_build_stubs): Likewise.
* nm.c (filter_symbols, print_symbols): Likewise.
* objcopy.c (filter_symbols): Likewise.
(mark_symbols_used_in_relocations): Likewise.
* objdump.c (remove_useless_symbols, dump_relocs): Likewise.
* size.c (sysv_internal_printer): Likewise.
Mon Jun 20 16:43:03 1994 Ken Raeburn (raeburn@cujo.cygnus.com) Mon Jun 20 16:43:03 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG). * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).

View file

@ -510,7 +510,7 @@ main (argc, argv)
symbols will confuse it. */ symbols will confuse it. */
if ((sym->flags & BSF_DEBUGGING) == 0 if ((sym->flags & BSF_DEBUGGING) == 0
&& bfd_asymbol_name (sym)[0] == '_' && bfd_asymbol_name (sym)[0] == '_'
&& bfd_get_section (sym) == &bfd_und_section) && bfd_is_und_section (bfd_get_section (sym)))
{ {
if (strcmp (bfd_asymbol_name (sym), "_edata") == 0) if (strcmp (bfd_asymbol_name (sym), "_edata") == 0)
{ {
@ -586,7 +586,7 @@ main (argc, argv)
/* If it's an undefined symbol, see if it's on the import list. /* If it's an undefined symbol, see if it's on the import list.
Change the prefix if necessary. */ Change the prefix if necessary. */
if (bfd_get_section (sym) == &bfd_und_section) if (bfd_is_und_section (bfd_get_section (sym)))
{ {
register struct string_list *l; register struct string_list *l;
@ -1504,7 +1504,7 @@ i386_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
/* Adjust the reloc for the changes we just made. */ /* Adjust the reloc for the changes we just made. */
rel->addend = 0; rel->addend = 0;
if (bfd_get_section (sym) != &bfd_und_section) if (! bfd_is_und_section (bfd_get_section (sym)))
rel->sym_ptr_ptr = bfd_get_section (sym)->symbol_ptr_ptr; rel->sym_ptr_ptr = bfd_get_section (sym)->symbol_ptr_ptr;
} }
@ -1600,7 +1600,7 @@ alpha_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
} }
*relocs = (arelent *) xmalloc (sizeof (arelent)); *relocs = (arelent *) xmalloc (sizeof (arelent));
(*relocs)->sym_ptr_ptr = bfd_abs_section.symbol_ptr_ptr; (*relocs)->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
(*relocs)->address = nlm_alpha_backend_data (outbfd)->lita_address; (*relocs)->address = nlm_alpha_backend_data (outbfd)->lita_address;
(*relocs)->addend = nlm_alpha_backend_data (outbfd)->lita_size + 1; (*relocs)->addend = nlm_alpha_backend_data (outbfd)->lita_size + 1;
(*relocs)->howto = &nlm32_alpha_nw_howto; (*relocs)->howto = &nlm32_alpha_nw_howto;
@ -1614,7 +1614,7 @@ alpha_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
bfd_ecoff_get_gp_value (insec->owner); bfd_ecoff_get_gp_value (insec->owner);
*relocs = (arelent *) xmalloc (sizeof (arelent)); *relocs = (arelent *) xmalloc (sizeof (arelent));
(*relocs)->sym_ptr_ptr = bfd_abs_section.symbol_ptr_ptr; (*relocs)->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
(*relocs)->address = nlm_alpha_backend_data (outbfd)->gp; (*relocs)->address = nlm_alpha_backend_data (outbfd)->gp;
(*relocs)->addend = 0; (*relocs)->addend = 0;
(*relocs)->howto = &nlm32_alpha_nw_howto; (*relocs)->howto = &nlm32_alpha_nw_howto;
@ -1754,7 +1754,7 @@ powerpc_build_stubs (inbfd, outbfd, symbols_ptr, symcount_ptr)
/* We must make a stub for every undefined symbol whose name /* We must make a stub for every undefined symbol whose name
starts with '.'. */ starts with '.'. */
if (bfd_asymbol_name (sym)[0] != '.' if (bfd_asymbol_name (sym)[0] != '.'
|| bfd_get_section (sym) != &bfd_und_section) || ! bfd_is_und_section (bfd_get_section (sym)))
continue; continue;
/* Make a new undefined symbol with the same name but without /* Make a new undefined symbol with the same name but without