GDBserver remote packet support for memory tagging
[deliverable/binutils-gdb.git] / binutils / coffgrok.c
index df2d063d1d651ce3420c1bba84d1cfaaea3a5f80..7b8dcf61b56bd3e7cd11af9265f0979e627246c7 100644 (file)
@@ -1,5 +1,5 @@
 /* coffgrok.c
-   Copyright (C) 1994-2018 Free Software Foundation, Inc.
+   Copyright (C) 1994-2021 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -145,7 +145,7 @@ do_sections_p1 (struct coff_ofile *head)
       if (strcmp (section->name, ".bss") == 0)
        head->sections[i].data = 1;
       head->sections[i].address = section->lma;
-      head->sections[i].size = bfd_get_section_size (section);
+      head->sections[i].size = bfd_section_size (section);
       head->sections[i].number = idx;
       head->sections[i].nrelocs = section->reloc_count;
       head->sections[i].relocs =
@@ -424,7 +424,7 @@ do_type (unsigned int i)
       if (sym->n_numaux)
        {
          if (aux == NULL)
-           fatal (_("Aggregate definition needs auxillary information"));
+           fatal (_("Aggregate definition needs auxiliary information"));
 
          if (aux->x_sym.x_tagndx.p)
            {
@@ -474,7 +474,7 @@ do_type (unsigned int i)
       break;
     case T_ENUM:
       if (aux == NULL)
-       fatal (_("Enum definition needs auxillary information"));
+       fatal (_("Enum definition needs auxiliary information"));
       if (aux->x_sym.x_tagndx.p)
        {
          unsigned int idx = INDEXOF (aux->x_sym.x_tagndx.p);
@@ -517,7 +517,7 @@ do_type (unsigned int i)
            int els;
 
            if (aux == NULL)
-             fatal (_("Array definition needs auxillary information"));
+             fatal (_("Array definition needs auxiliary information"));
            els = (dimind < DIMNUM
                   ? aux->x_sym.x_fcnary.x_ary.x_dimen[dimind]
                   : 0);
@@ -890,12 +890,12 @@ coff_grok (bfd *inabfd)
   storage = bfd_get_symtab_upper_bound (abfd);
 
   if (storage < 0)
-    bfd_fatal (abfd->filename);
+    bfd_fatal (bfd_get_filename (abfd));
 
   syms = (asymbol **) xmalloc (storage);
   symcount = bfd_canonicalize_symtab (abfd, syms);
   if (symcount < 0)
-    bfd_fatal (abfd->filename);
+    bfd_fatal (bfd_get_filename (abfd));
   rawsyms = obj_raw_syments (abfd);
   rawcount = obj_raw_syment_count (abfd);
   tindex = (struct coff_symbol **) (xcalloc (sizeof (struct coff_symbol *), rawcount));
This page took 0.023951 seconds and 4 git commands to generate.