Subversion Repositories Kolibri OS

Rev

Rev 5197 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5197 Rev 6324
Line 1... Line 1...
1
/* VxWorks support for ELF
1
/* VxWorks support for ELF
2
   Copyright 2005, 2006, 2007, 2009, 2012 Free Software Foundation, Inc.
2
   Copyright (C) 2005-2015 Free Software Foundation, Inc.
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
   This file is part of BFD, the Binary File Descriptor library.
4
   This file is part of BFD, the Binary File Descriptor library.
5
 
5
 
Line 62... Line 62...
62
     don't even link to libc.so.1 by default...
62
     don't even link to libc.so.1 by default...
63
     If the symbol is imported from, or will be put in a shared library,
63
     If the symbol is imported from, or will be put in a shared library,
64
     give the symbol weak binding to get the desired samantics.
64
     give the symbol weak binding to get the desired samantics.
65
     This transformation will be undone in
65
     This transformation will be undone in
66
     elf_i386_vxworks_link_output_symbol_hook. */
66
     elf_i386_vxworks_link_output_symbol_hook. */
67
  if ((info->shared || abfd->flags & DYNAMIC)
67
  if ((bfd_link_pic (info) || abfd->flags & DYNAMIC)
68
      && elf_vxworks_gott_symbol_p (abfd, *namep))
68
      && elf_vxworks_gott_symbol_p (abfd, *namep))
69
    {
69
    {
70
      sym->st_info = ELF_ST_INFO (STB_WEAK, ELF_ST_TYPE (sym->st_info));
70
      sym->st_info = ELF_ST_INFO (STB_WEAK, ELF_ST_TYPE (sym->st_info));
71
      *flagsp |= BSF_WEAK;
71
      *flagsp |= BSF_WEAK;
72
    }
72
    }
Line 87... Line 87...
87
  asection *s;
87
  asection *s;
Line 88... Line 88...
88
 
88
 
89
  htab = elf_hash_table (info);
89
  htab = elf_hash_table (info);
Line 90... Line 90...
90
  bed = get_elf_backend_data (dynobj);
90
  bed = get_elf_backend_data (dynobj);
91
 
91
 
92
  if (!info->shared)
92
  if (!bfd_link_pic (info))
93
    {
93
    {
94
      s = bfd_make_section_anyway_with_flags (dynobj,
94
      s = bfd_make_section_anyway_with_flags (dynobj,
95
					      bed->default_use_rela_p
95
					      bed->default_use_rela_p