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/] [elf32-cr16c.c] - Diff between revs 157 and 225

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

Rev 157 Rev 225
Line 1... Line 1...
/* BFD back-end for National Semiconductor's CR16C ELF
/* BFD back-end for National Semiconductor's CR16C ELF
   Copyright 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
   Copyright 2004, 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 925... Line 925...
    }
    }
 
 
  return TRUE;
  return TRUE;
}
}
 
 
static bfd_boolean
static int
elf32_cr16c_link_output_symbol_hook (struct bfd_link_info *info ATTRIBUTE_UNUSED,
elf32_cr16c_link_output_symbol_hook (struct bfd_link_info *info ATTRIBUTE_UNUSED,
                                     const char *name ATTRIBUTE_UNUSED,
                                     const char *name ATTRIBUTE_UNUSED,
                                     Elf_Internal_Sym *sym,
                                     Elf_Internal_Sym *sym,
                                     asection *input_sec,
                                     asection *input_sec,
                                     struct elf_link_hash_entry *h ATTRIBUTE_UNUSED)
                                     struct elf_link_hash_entry *h ATTRIBUTE_UNUSED)
Line 944... Line 944...
        sym->st_shndx = SHN_CR16C_FCOMMON;
        sym->st_shndx = SHN_CR16C_FCOMMON;
      else if (strcmp (input_sec->name, ".ncommon") == 0)
      else if (strcmp (input_sec->name, ".ncommon") == 0)
        sym->st_shndx = SHN_CR16C_NCOMMON;
        sym->st_shndx = SHN_CR16C_NCOMMON;
    }
    }
 
 
  return TRUE;
  return 1;
}
}
 
 
/* Definitions for setting CR16C target vector.  */
/* Definitions for setting CR16C target vector.  */
#define TARGET_LITTLE_SYM               bfd_elf32_cr16c_vec
#define TARGET_LITTLE_SYM               bfd_elf32_cr16c_vec
#define TARGET_LITTLE_NAME              "elf32-cr16c"
#define TARGET_LITTLE_NAME              "elf32-cr16c"

powered by: WebSVN 2.1.0

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