X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fxcofflink.c;h=91e0041ea184c9d6b3ccfc31dbb7fba6165f363b;hb=17a03c954dc046d507ea269d4f96d026ebf9109f;hp=f9c12e40f343963805e8a76825fc971ce15a9eeb;hpb=0eb32b6e1dee07ac199b4bba855205e4de099213;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index f9c12e40f3..91e0041ea1 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -28,6 +28,7 @@ #include "libcoff.h" #include "libxcoff.h" #include "libiberty.h" +#include "xcofflink.h" /* This file holds the XCOFF linker code. */ @@ -2080,14 +2081,14 @@ xcoff_link_add_symbols (bfd *abfd, struct bfd_link_info *info) for (o = abfd->sections; o != first_csect; o = o->next) { /* Debugging sections have no csects. */ - if (bfd_get_section_flags (abfd, o) & SEC_DEBUGGING) + if (bfd_section_flags (o) & SEC_DEBUGGING) continue; /* Reset the section size and the line number count, since the data is now attached to the csects. Don't reset the size of the .debug section, since we need to read it below in bfd_xcoff_size_dynamic_sections. */ - if (strcmp (bfd_get_section_name (abfd, o), ".debug") != 0) + if (strcmp (bfd_section_name (o), ".debug") != 0) o->size = 0; o->lineno_count = 0; @@ -3019,7 +3020,7 @@ xcoff_sweep (struct bfd_link_info *info) || o == xcoff_hash_table (info)->loader_section || o == xcoff_hash_table (info)->linkage_section || o == xcoff_hash_table (info)->descriptor_section - || (bfd_get_section_flags (sub, o) & SEC_DEBUGGING) + || (bfd_section_flags (o) & SEC_DEBUGGING) || strcmp (o->name, ".debug") == 0) o->flags |= SEC_MARK; else @@ -6412,9 +6413,9 @@ _bfd_xcoff_bfd_final_link (bfd *abfd, struct bfd_link_info *info) goto error_return; } - /* Setting bfd_get_symcount to 0 will cause write_object_contents to + /* Setting symcount to 0 will cause write_object_contents to not try to write out the symbols. */ - bfd_get_symcount (abfd) = 0; + abfd->symcount = 0; return TRUE;