/* BFD COFF interfaces used outside of BFD.
- Copyright (C) 1990-2016 Free Software Foundation, Inc.
+ Copyright (C) 1990-2022 Free Software Foundation, Inc.
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
/* Return the COFF syment for a symbol. */
-bfd_boolean
+bool
bfd_coff_get_syment (bfd *abfd,
asymbol *symbol,
struct internal_syment *psyment)
|| ! csym->native->is_sym)
{
bfd_set_error (bfd_error_invalid_operation);
- return FALSE;
+ return false;
}
*psyment = csym->native->u.syment;
if (csym->native->fix_value)
- psyment->n_value = psyment->n_value -
- (bfd_hostptr_t) obj_raw_syments (abfd);
+ psyment->n_value =
+ ((psyment->n_value - (bfd_hostptr_t) obj_raw_syments (abfd))
+ / sizeof (combined_entry_type));
/* FIXME: We should handle fix_line here. */
- return TRUE;
+ return true;
}
/* Return the COFF auxent for a symbol. */
-bfd_boolean
+bool
bfd_coff_get_auxent (bfd *abfd,
asymbol *symbol,
int indx,
|| indx >= csym->native->u.syment.n_numaux)
{
bfd_set_error (bfd_error_invalid_operation);
- return FALSE;
+ return false;
}
ent = csym->native + indx + 1;
((combined_entry_type *) pauxent->x_csect.x_scnlen.p
- obj_raw_syments (abfd));
- return TRUE;
+ return true;
}