diff options
author | Per Bothner <per@bothner.com> | 1991-11-29 20:31:57 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1991-11-29 20:31:57 +0000 |
commit | 372170607324f200e993f356448225cb3474d58e (patch) | |
tree | baeac5f1842ca275a53d624b06c8dc6cb0cc8915 /bfd/syms.c | |
parent | 6089addcdc095ec84c74a4324b6c949a42c8011a (diff) | |
download | gdb-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.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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) |