aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2009-03-07 23:38:13 +0000
committerDave Anglin <dave.anglin@nrc.ca>2009-03-07 23:38:13 +0000
commitf501de170c57009d6df7b51827e517107ab3c66f (patch)
tree16b8b80b7f4e8a2532def1014fb6185e48f454d6
parentb264ba2c90b34b65fbe7acf877465d5d0f64a902 (diff)
downloadgdb-f501de170c57009d6df7b51827e517107ab3c66f.zip
gdb-f501de170c57009d6df7b51827e517107ab3c66f.tar.gz
gdb-f501de170c57009d6df7b51827e517107ab3c66f.tar.bz2
PR binutils/9921
* som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE for unknown symbols in absolute section.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/som.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index df3961f..2d043f7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR binutils/9921
+ * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
+ for unknown symbols in absolute section.
+
2009-03-06 Nick Clifton <nickc@redhat.com>
* po/es.po: Updated Spanish translation.
diff --git a/bfd/som.c b/bfd/som.c
index 360819d..9e3dc78 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -1,6 +1,6 @@
/* 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
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
@@ -4015,7 +4015,9 @@ som_bfd_derive_misc_symbol_info (bfd *abfd ATTRIBUTE_UNUSED,
section (ST_DATA for DATA sections, ST_CODE for CODE sections). */
else if (som_symbol_data (sym)->som_type == SYMBOL_TYPE_UNKNOWN)
{
- if (sym->section->flags & SEC_CODE)
+ if (bfd_is_abs_section (sym->section))
+ info->symbol_type = ST_ABSOLUTE;
+ else if (sym->section->flags & SEC_CODE)
info->symbol_type = ST_CODE;
else
info->symbol_type = ST_DATA;