PF (SEC_DATA, "DATA");
PF (SEC_ROM, "ROM");
PF (SEC_DEBUGGING, "DEBUGGING");
+ PF (SEC_NEVER_LOAD, "NEVER_LOAD");
printf ("\n");
#undef PF
}
asymbol **sy = (asymbol **) NULL;
long storage;
- if (!(bfd_get_file_flags (abfd) & DYNAMIC))
- {
- fprintf (stderr, "%s: %s: not a dynamic object\n",
- program_name, bfd_get_filename (abfd));
- return NULL;
- }
-
storage = bfd_get_dynamic_symtab_upper_bound (abfd);
if (storage < 0)
- bfd_fatal (bfd_get_filename (abfd));
+ {
+ if (!(bfd_get_file_flags (abfd) & DYNAMIC))
+ {
+ fprintf (stderr, "%s: %s: not a dynamic object\n",
+ program_name, bfd_get_filename (abfd));
+ return NULL;
+ }
+
+ bfd_fatal (bfd_get_filename (abfd));
+ }
if (storage)
{
continue;
if (sym->flags & (BSF_DEBUGGING))
continue;
- if (sym->section == &bfd_und_section
+ if (bfd_is_und_section (sym->section)
|| bfd_is_com_section (sym->section))
continue;
for (i = thisplace + 1; i < symcount; i++)
{
if (syms[i]->value != syms[thisplace]->value)
- {
- i--;
- break;
- }
+ break;
}
+ --i;
for (; i >= 0; i--)
{
if (syms[i]->section == aux->sec)
{
long relsize;
- if (a == &bfd_abs_section)
+ if (bfd_is_abs_section (a))
continue;
- if (a == &bfd_und_section)
+ if (bfd_is_und_section (a))
continue;
if (bfd_is_com_section (a))
continue;