mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 10:55:46 +08: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:
@ -1089,9 +1089,9 @@ plugin_object_p (bfd *ibfd)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
inarchive = (bfd_my_archive (ibfd) != NULL
|
||||
&& !bfd_is_thin_archive (bfd_my_archive (ibfd)));
|
||||
name = inarchive ? bfd_my_archive (ibfd)->filename : ibfd->filename;
|
||||
inarchive = (ibfd->my_archive != NULL
|
||||
&& !bfd_is_thin_archive (ibfd->my_archive));
|
||||
name = inarchive ? ibfd->my_archive->filename : ibfd->filename;
|
||||
fd = open (name, O_RDONLY | O_BINARY);
|
||||
|
||||
if (fd < 0)
|
||||
|
Reference in New Issue
Block a user