OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [bfd/] [elf-vxworks.c] - Diff between revs 157 and 225

Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
/* VxWorks support for ELF
/* VxWorks support for ELF
   Copyright 2005, 2007 Free Software Foundation, Inc.
   Copyright 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
 
 
   This file is part of BFD, the Binary File Descriptor library.
   This file is part of BFD, the Binary File Descriptor library.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
Line 125... Line 125...
 
 
  return TRUE;
  return TRUE;
}
}
 
 
/* Tweak magic VxWorks symbols as they are written to the output file.  */
/* Tweak magic VxWorks symbols as they are written to the output file.  */
bfd_boolean
int
elf_vxworks_link_output_symbol_hook (struct bfd_link_info *info
elf_vxworks_link_output_symbol_hook (struct bfd_link_info *info
                                       ATTRIBUTE_UNUSED,
                                       ATTRIBUTE_UNUSED,
                                     const char *name,
                                     const char *name,
                                     Elf_Internal_Sym *sym,
                                     Elf_Internal_Sym *sym,
                                     asection *input_sec ATTRIBUTE_UNUSED,
                                     asection *input_sec ATTRIBUTE_UNUSED,
Line 139... Line 139...
  if (h
  if (h
      && h->root.type == bfd_link_hash_undefweak
      && h->root.type == bfd_link_hash_undefweak
      && elf_vxworks_gott_symbol_p (h->root.u.undef.abfd, name))
      && elf_vxworks_gott_symbol_p (h->root.u.undef.abfd, name))
    sym->st_info = ELF_ST_INFO (STB_GLOBAL, ELF_ST_TYPE (sym->st_info));
    sym->st_info = ELF_ST_INFO (STB_GLOBAL, ELF_ST_TYPE (sym->st_info));
 
 
  return TRUE;
  return 1;
}
}
 
 
/* Copy relocations into the output file.  Fixes up relocations against PLT
/* Copy relocations into the output file.  Fixes up relocations against PLT
   entries, then calls the generic routine.  */
   entries, then calls the generic routine.  */
 
 

powered by: WebSVN 2.1.0

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