summaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-12-31 11:01:54 +0000
committerNick Clifton <nickc@redhat.com>2007-12-31 11:01:54 +0000
commit47123ec658ba7d63e1bc1762a5d49a68a8c780fa (patch)
tree176a675347eb83eb9a1c1b3c39b72f6af4accfde /bfd/elf-bfd.h
parent2dddb14a3d62ed72ec21c200be2f9a5f87ca89cd (diff)
downloadgdb-47123ec658ba7d63e1bc1762a5d49a68a8c780fa.tar.gz
* elf.c (_bfd_elf_find_segment_containing_section): New function:
Scan the segment map looking for the segment containing a specified function. * elf-bfd.h: Prototype the new function. * elf-hppa.h (elf_hppa_osec_to_segment): Delete. (elf_hppa_record_segment_addrs): Use new function. * elf32-bfin.c (_bfdfdpic_osec_to_segment): Use new function. * elf32-frv.c (_frvfdpic_osec_to_segment): Use new function. * elf32-hppa.c (hppa_record_segment_addr): Use new function. * elfxx-ia64.c (elfNN_ia64_relocate_section): Use new function.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 918eec31ce0..dc9f1538a23 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2076,6 +2076,9 @@ extern bfd_boolean _bfd_elf_map_sections_to_segments
extern bfd_boolean _bfd_elf_is_function_type (unsigned int);
+extern Elf_Internal_Phdr * _bfd_elf_find_segment_containing_section
+ (bfd * abfd, asection * section);
+
/* Exported interface for writing elf corefile notes. */
extern char *elfcore_write_note
(bfd *, char *, int *, const char *, int, const void *, int);