diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-04-01 22:33:05 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-04-01 22:33:05 +0000 |
commit | aad53b0d5906a0bbdc3315fe654c4522b4d80164 (patch) | |
tree | b7e9ff64350a9367962b103deca6f9753e75ba7d /bfd/aoutx.h | |
parent | 2271578d4e5ed901fea27fe90fc7006845dbc184 (diff) | |
download | gdb-aad53b0d5906a0bbdc3315fe654c4522b4d80164.zip gdb-aad53b0d5906a0bbdc3315fe654c4522b4d80164.tar.gz gdb-aad53b0d5906a0bbdc3315fe654c4522b4d80164.tar.bz2 |
* aoutx.h (aout_link_input_section_std): When reporting an
overflow error, use the name of the symbol in the hash table if
available.
(aout_link_input_section_ext): Likewise.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 2b8407b..b8dd884 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -4915,7 +4915,9 @@ aout_link_input_section_std (finfo, input_bfd, input_section, relocs, { const char *name; - if (r_extern) + if (h != NULL) + name = h->root.root.string; + else if (r_extern) name = strings + GET_WORD (input_bfd, syms[r_index].e_strx); else @@ -5300,10 +5302,12 @@ aout_link_input_section_ext (finfo, input_bfd, input_section, relocs, { const char *name; - if (r_extern - || r_type == RELOC_BASE10 - || r_type == RELOC_BASE13 - || r_type == RELOC_BASE22) + if (h != NULL) + name = h->root.root.string; + else if (r_extern + || r_type == RELOC_BASE10 + || r_type == RELOC_BASE13 + || r_type == RELOC_BASE22) name = strings + GET_WORD (input_bfd, syms[r_index].e_strx); else |