aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-03-26 10:46:25 +0000
committerNick Clifton <nickc@redhat.com>2020-03-26 10:46:25 +0000
commitaa49fc22c13a685452a2073e252d8b34ecbcc012 (patch)
tree929f3dc24df92058ca83cd4368af2aa5f692ed19
parent832a580781060f54731fcf654d76ac1332037a47 (diff)
downloadgdb-aa49fc22c13a685452a2073e252d8b34ecbcc012.zip
gdb-aa49fc22c13a685452a2073e252d8b34ecbcc012.tar.gz
gdb-aa49fc22c13a685452a2073e252d8b34ecbcc012.tar.bz2
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.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/cofflink.c9
-rw-r--r--bfd/libbfd-in.h5
-rw-r--r--bfd/libbfd.h5
4 files changed, 7 insertions, 19 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 441725f..22508d0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2020-03-26 Nick Clifton <nickc@redhat.com>
+
+ * 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 <amodra@gmail.com>
* i386msdos.c (msdos_object_p): Catch -1 return from bfd_bread.
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 845d1e5..e52f543 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 2f1f886..5d24efb 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 fc8b81c..348ccfd 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. */