mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Delete bfd_my_archive macro
Many more places use abfd->my_archive rather than bfd_my_archive (abfd), so let's make the code consistently use the first idiom. bfd/ * bfd-in.h (bfd_my_archive): Delete. * bfd-in2.h: Regenerate. binutils/ * ar.c: Expand uses of bfd_my_archive. * size.c: Likewise. ld/ * ldlang.c: Expand uses of bfd_my_archive. * ldmain.c: Likewise. * ldmisc.c: Likewise. * plugin.c: Likewise.
This commit is contained in:
@@ -2499,9 +2499,9 @@ wild_sort (lang_wild_statement_type *wild,
|
||||
archive. */
|
||||
|
||||
if (file->the_bfd != NULL
|
||||
&& bfd_my_archive (file->the_bfd) != NULL)
|
||||
&& file->the_bfd->my_archive != NULL)
|
||||
{
|
||||
fn = bfd_get_filename (bfd_my_archive (file->the_bfd));
|
||||
fn = bfd_get_filename (file->the_bfd->my_archive);
|
||||
fa = TRUE;
|
||||
}
|
||||
else
|
||||
@@ -2510,9 +2510,9 @@ wild_sort (lang_wild_statement_type *wild,
|
||||
fa = FALSE;
|
||||
}
|
||||
|
||||
if (bfd_my_archive (ls->section->owner) != NULL)
|
||||
if (ls->section->owner->my_archive != NULL)
|
||||
{
|
||||
ln = bfd_get_filename (bfd_my_archive (ls->section->owner));
|
||||
ln = bfd_get_filename (ls->section->owner->my_archive);
|
||||
la = TRUE;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user