fix libbfd.h declaration, by tweaking elf.c comment, so bfd can compile
authorKen Raeburn <raeburn@cygnus>
Wed, 30 Dec 1992 02:48:29 +0000 (02:48 +0000)
committerKen Raeburn <raeburn@cygnus>
Wed, 30 Dec 1992 02:48:29 +0000 (02:48 +0000)
bfd/ChangeLog
bfd/elf.c

index 1907346f7167df39c29df5f8173613cd589aefad..6a17ba41f3b9f06e8b026f4de0dcea3d0e1f8d33 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 29 21:41:05 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * elf.c (bfd_elf_find_section): Switch back to "struct ..." for
+       return type, so libbfd.h doesn't reference undefined typedefnames.
+
 Tue Dec 29 13:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * coffcode.h (coff_real_object_p): use name I386AIXMAGIC rather
index d6b28d34d872c77c79bb80cc2cb71e51f68bdf98..c3836f9351d66b3f33d826d9786935dc5be3c8e6 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -345,7 +345,7 @@ INTERNAL_FUNCTION
        bfd_elf_find_section
 
 SYNOPSIS
-       Elf_Internal_Shdr *bfd_elf_find_section (bfd *abfd, char *name);
+       struct elf_internal_shdr *bfd_elf_find_section (bfd *abfd, char *name);
 
 DESCRIPTION
        Helper functions for GDB to locate the string tables.
@@ -355,7 +355,7 @@ DESCRIPTION
        mechanisms wouldn't work to find it, even if we had some.
 */
 
-Elf_Internal_Shdr *
+struct elf_internal_shdr *
 DEFUN(bfd_elf_find_section, (abfd, name),
       bfd              *abfd AND
       char             *name)