X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fsom.c;h=4fddf32a60c84b219081c383e9968e4c119c5599;hb=5fc35d961bda7f8d40bfad9ca458a6b08de02bcb;hp=a642231a8f9e8c307b1330524bfd7aef6a506eee;hpb=0aabe54e62224040844b7a5516fd832e078056b4;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/som.c b/bfd/som.c index a642231a8f..4fddf32a60 100644 --- a/bfd/som.c +++ b/bfd/som.c @@ -1,7 +1,5 @@ /* bfd back-end for HP PA-RISC SOM objects. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 - Free Software Foundation, Inc. + Copyright (C) 1990-2014 Free Software Foundation, Inc. Contributed by the Center for Software Science at the University of Utah. @@ -23,8 +21,8 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "alloca-conf.h" #include "sysdep.h" +#include "alloca-conf.h" #include "bfd.h" #include "libbfd.h" @@ -2496,7 +2494,7 @@ som_object_p (bfd *abfd) { struct som_external_exec_auxhdr ext_exec_auxhdr; - aux_hdr_ptr = bfd_zalloc (abfd, + aux_hdr_ptr = bfd_zalloc (abfd, (bfd_size_type) sizeof (*aux_hdr_ptr)); if (aux_hdr_ptr == NULL) return NULL; @@ -4572,7 +4570,7 @@ som_get_symtab_upper_bound (bfd *abfd) /* Convert from a SOM subspace index to a BFD section. */ -static asection * +asection * bfd_section_from_som_symbol (bfd *abfd, struct som_external_symbol_dictionary_record *symbol) { @@ -5746,9 +5744,9 @@ som_find_nearest_line (bfd *abfd, low_func = 0; for (p = symbols; *p != NULL; p++) - { + { som_symbol_type *q = (som_symbol_type *) *p; - + if (q->som_type == SYMBOL_TYPE_ENTRY && q->symbol.section == section && q->symbol.value >= low_func @@ -6741,6 +6739,7 @@ som_bfd_link_split_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec) _bfd_generic_copy_link_hash_symbol_type #define som_bfd_final_link _bfd_generic_final_link #define som_bfd_gc_sections bfd_generic_gc_sections +#define som_bfd_lookup_section_flags bfd_generic_lookup_section_flags #define som_bfd_merge_sections bfd_generic_merge_sections #define som_bfd_is_group_section bfd_generic_is_group_section #define som_bfd_discard_group bfd_generic_discard_group