OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [bfd/] [elf-eh-frame.c] - Diff between revs 205 and 663

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 205 Rev 663
Line 1234... Line 1234...
   or -1 if the address refers to a CIE/FDE which has been removed
   or -1 if the address refers to a CIE/FDE which has been removed
   or to offset with dynamic relocation which is no longer needed.  */
   or to offset with dynamic relocation which is no longer needed.  */
 
 
bfd_vma
bfd_vma
_bfd_elf_eh_frame_section_offset (bfd *output_bfd ATTRIBUTE_UNUSED,
_bfd_elf_eh_frame_section_offset (bfd *output_bfd ATTRIBUTE_UNUSED,
                                  struct bfd_link_info *info,
                                  struct bfd_link_info *info ATTRIBUTE_UNUSED,
                                  asection *sec,
                                  asection *sec,
                                  bfd_vma offset)
                                  bfd_vma offset)
{
{
  struct eh_frame_sec_info *sec_info;
  struct eh_frame_sec_info *sec_info;
  struct elf_link_hash_table *htab;
 
  struct eh_frame_hdr_info *hdr_info;
 
  unsigned int lo, hi, mid;
  unsigned int lo, hi, mid;
 
 
  if (sec->sec_info_type != ELF_INFO_TYPE_EH_FRAME)
  if (sec->sec_info_type != ELF_INFO_TYPE_EH_FRAME)
    return offset;
    return offset;
  sec_info = (struct eh_frame_sec_info *) elf_section_data (sec)->sec_info;
  sec_info = (struct eh_frame_sec_info *) elf_section_data (sec)->sec_info;
 
 
  if (offset >= sec->rawsize)
  if (offset >= sec->rawsize)
    return offset - sec->rawsize + sec->size;
    return offset - sec->rawsize + sec->size;
 
 
  htab = elf_hash_table (info);
 
  hdr_info = &htab->eh_info;
 
 
 
  lo = 0;
  lo = 0;
  hi = sec_info->count;
  hi = sec_info->count;
  mid = 0;
  mid = 0;
  while (lo < hi)
  while (lo < hi)
    {
    {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.