/* coffgrok.c
- Copyright (C) 1994-2015 Free Software Foundation, Inc.
+ Copyright (C) 1994-2022 Free Software Foundation, Inc.
This file is part of GNU Binutils.
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 =
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)
{
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);
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);
doit (void)
{
unsigned int i;
- bfd_boolean infile = FALSE;
+ bool infile = false;
struct coff_ofile *head =
(struct coff_ofile *) xmalloc (sizeof (struct coff_ofile));
if (infile)
pop_scope ();
else
- infile = TRUE;
+ infile = true;
push_scope (1);
file_scope = n->scope = top_scope;
case C_UNTAG:
/* Various definition. */
if (top_scope == NULL)
- fatal (_("Aggregate defintion encountered without a scope"));
+ fatal (_("Aggregate definition encountered without a scope"));
i = do_define (i, top_scope);
break;
case C_EXT:
case C_LABEL:
if (file_scope == NULL)
- fatal (_("Label defintion encountered without a file scope"));
+ fatal (_("Label definition encountered without a file scope"));
i = do_define (i, file_scope);
break;
case C_STAT:
case C_AUTO:
case C_REG:
if (top_scope == NULL)
- fatal (_("Variable defintion encountered without a scope"));
+ fatal (_("Variable definition encountered without a scope"));
i = do_define (i, top_scope);
break;
case C_EOS:
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));