* elf.c (bfd_elf_find_section): Mark as INTERNAL_FUNCTION so
authorJohn Gilmore <gnu@cygnus>
Sat, 20 Jun 1992 02:04:20 +0000 (02:04 +0000)
committerJohn Gilmore <gnu@cygnus>
Sat, 20 Jun 1992 02:04:20 +0000 (02:04 +0000)
its prototype will be included in libbfd.h.  Change result type
to struct * (rather than equivalent typedef) so it can be used in
the prototype, where they typedef won't be known.
* libbfd.h:  Updated version.

bfd/ChangeLog
bfd/elf.c
bfd/libbfd.h

index a8efd79..b21d009 100644 (file)
@@ -1,3 +1,11 @@
+Fri Jun 19 19:00:45 1992  John Gilmore  (gnu at cygnus.com)
+
+       * elf.c (bfd_elf_find_section):  Mark as INTERNAL_FUNCTION so
+       its prototype will be included in libbfd.h.  Change result type
+       to struct * (rather than equivalent typedef) so it can be used in
+       the prototype, where they typedef won't be known.
+       * libbfd.h:  Updated version.
+
 Fri Jun 19 15:21:56 1992  Stu Grossman  (grossman at cygnus.com)
 
        * Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h,
index c41ba0a..f437ce9 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -327,10 +327,23 @@ static boolean EXFUN(elf_slurp_symbol_table, (bfd *, Elf_Internal_Shdr*));
 static void EXFUN(elf_info_to_howto, (bfd *, arelent *, Elf_Internal_Rela *));
 static char *EXFUN(elf_get_str_section, (bfd *, unsigned int));
      
-/* Helper functions for GDB to locate the string tables.  */
+/* 
+INTERNAL_FUNCTION
+       bfd_elf_find_section
+
+SYNOPSIS
+       struct elf_internal_shdr *bfd_elf_find_section (bfd *abfd, char *name);
+
+DESCRIPTION
+       Helper functions for GDB to locate the string tables.
+       Since BFD hides string tables from callers, GDB needs to use an
+       internal hook to find them.  Sun's .stabstr, in particular,
+       isn't even pointed to by the .stab section, so ordinary
+       mechanisms wouldn't work to find it, even if we had some.
+*/
 
-Elf_Internal_Shdr *
-DEFUN(bfd_elf_find_section, (abfd, name),      /* .stabstr offset */
+struct elf_internal_shdr *
+DEFUN(bfd_elf_find_section, (abfd, name),
       bfd              *abfd AND
       char             *name)
 {
index 3b4f2c3..1f3de87 100644 (file)
@@ -219,7 +219,8 @@ boolean EXFUN(bfd_generic_relax_section
     asymbol **symbols));
 bfd_byte *
 EXFUN(bfd_generic_get_relocated_section_contents, (bfd *abfd,
-    struct bfd_seclet_struct  *seclet)
+    struct bfd_seclet_struct  *seclet,
+    bfd_byte *data)
     
     );
 extern bfd_arch_info_type bfd_default_arch_struct;
@@ -232,3 +233,4 @@ CONST bfd_arch_info_type *EXFUN(bfd_default_compatible
     , (CONST bfd_arch_info_type *a,
     CONST bfd_arch_info_type *b));
 boolean EXFUN(bfd_default_scan, (CONST struct bfd_arch_info *, CONST char *));
+struct elf_internal_shdr *EXFUN(bfd_elf_find_section , (bfd *abfd, char *name));