aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-11-29 20:31:57 +0000
committerPer Bothner <per@bothner.com>1991-11-29 20:31:57 +0000
commit372170607324f200e993f356448225cb3474d58e (patch)
treebaeac5f1842ca275a53d624b06c8dc6cb0cc8915 /bfd/syms.c
parent6089addcdc095ec84c74a4324b6c949a42c8011a (diff)
downloadgdb-372170607324f200e993f356448225cb3474d58e.zip
gdb-372170607324f200e993f356448225cb3474d58e.tar.gz
gdb-372170607324f200e993f356448225cb3474d58e.tar.bz2
Two small bug-fixes (affecting ar and nm).
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index f791c06..c6a2b39 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -383,16 +383,10 @@ asymbol *symbol)
{
flagword flags = symbol->flags;
-#if 0
- if ((symbol->value == 0) && (symbol->section != NULL))
- /* Huh? All section names don't begin with "." */
- return (symbol->section->name)[1];
-#endif
-
if (flags & BSF_FORT_COMM) return 'C';
if (flags & BSF_UNDEFINED) return 'U';
- if (flags & BSF_ABSOLUTE) return 'a';
-
+ if (flags & BSF_ABSOLUTE)
+ return (flags & BSF_GLOBAL) ? 'A' : 'a';
if ( flags & (BSF_GLOBAL|BSF_LOCAL) ) {
if (symbol->section == (asection *)NULL)