diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-21 17:20:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-21 17:20:20 +0000 |
commit | a18ff4a73033d758ea00f412039af74a39ee5e57 (patch) | |
tree | 6f9bbcfd5311170738abbda164049a3a9755d00c | |
parent | c098f9751b16baf9c2a130f224e9b530565dd3a5 (diff) | |
download | gdb-a18ff4a73033d758ea00f412039af74a39ee5e57.zip gdb-a18ff4a73033d758ea00f412039af74a39ee5e57.tar.gz gdb-a18ff4a73033d758ea00f412039af74a39ee5e57.tar.bz2 |
* 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.
-rw-r--r-- | binutils/ChangeLog | 12 | ||||
-rw-r--r-- | binutils/nlmconv.c | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index dbc5e6d..fe00904 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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) * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG). diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index 43b76ca..5814be8 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -510,7 +510,7 @@ main (argc, argv) symbols will confuse it. */ if ((sym->flags & BSF_DEBUGGING) == 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) { @@ -586,7 +586,7 @@ main (argc, argv) /* If it's an undefined symbol, see if it's on the import list. 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; @@ -1504,7 +1504,7 @@ i386_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents, /* Adjust the reloc for the changes we just made. */ 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; } @@ -1600,7 +1600,7 @@ alpha_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents, } *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)->addend = nlm_alpha_backend_data (outbfd)->lita_size + 1; (*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); *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)->addend = 0; (*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 starts with '.'. */ if (bfd_asymbol_name (sym)[0] != '.' - || bfd_get_section (sym) != &bfd_und_section) + || ! bfd_is_und_section (bfd_get_section (sym))) continue; /* Make a new undefined symbol with the same name but without |