* elf.c (_bfd_elf_find_segment_containing_section): New function:
commit17019b39b4f9c69885387279723fef84dc0639e7
authorNick Clifton <nickc@redhat.com>
Mon, 31 Dec 2007 11:01:54 +0000 (31 11:01 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 31 Dec 2007 11:01:54 +0000 (31 11:01 +0000)
tree0cf67c9a380c63a1a3909ba2ebf7ce70d25ef30a
parent7d225079baa7d2fb19b0d076e1ee3907be292b2b
* 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.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-hppa.h
bfd/elf.c
bfd/elf32-bfin.c
bfd/elf32-frv.c
bfd/elf32-hppa.c
bfd/elfxx-ia64.c