From aa49fc22c13a685452a2073e252d8b34ecbcc012 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 26 Mar 2020 10:46:25 +0000 Subject: [PATCH] Revert earlier delta adding bfd_coff_get_internal_extra_pe_aouthdr() function. * cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): Delete. * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Remove prototype. * libbfd.h: Regenerate. --- bfd/ChangeLog | 7 +++++++ bfd/cofflink.c | 9 --------- bfd/libbfd-in.h | 5 ----- bfd/libbfd.h | 5 ----- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 441725f0ebf..22508d09878 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2020-03-26 Nick Clifton + + * cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): Delete. + * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Remove + prototype. + * libbfd.h: Regenerate. + 2020-03-26 Alan Modra * i386msdos.c (msdos_object_p): Catch -1 return from bfd_bread. diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 845d1e58467..e52f543ee6e 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -3157,12 +3157,3 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, } return TRUE; } - - -struct internal_extra_pe_aouthdr * -bfd_coff_get_internal_extra_pe_aouthdr (bfd* abfd) -{ - if (abfd == NULL || bfd_get_flavour (abfd) != bfd_target_coff_flavour) - return NULL; - return & pe_data (abfd)->pe_opthdr; -} diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 2f1f88644ed..5d24efbeb26 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -854,11 +854,6 @@ extern bfd_vma _bfd_get_gp_value extern void _bfd_set_gp_value (bfd *, bfd_vma) ATTRIBUTE_HIDDEN; -/* Provide access to the internal_extra_pe_aouthdr structure which - contains interesting information for PE format binaries. */ -extern struct internal_extra_pe_aouthdr * - bfd_coff_get_internal_extra_pe_aouthdr (bfd *); - /* Function shared by the COFF and ELF SH backends, which have no other common header files. */ diff --git a/bfd/libbfd.h b/bfd/libbfd.h index fc8b81c45f0..348ccfd4b57 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -859,11 +859,6 @@ extern bfd_vma _bfd_get_gp_value extern void _bfd_set_gp_value (bfd *, bfd_vma) ATTRIBUTE_HIDDEN; -/* Provide access to the internal_extra_pe_aouthdr structure which - contains interesting information for PE format binaries. */ -extern struct internal_extra_pe_aouthdr * - bfd_coff_get_internal_extra_pe_aouthdr (bfd *); - /* Function shared by the COFF and ELF SH backends, which have no other common header files. */ -- 2.30.2