* aoutx.h (aout_link_input_section_std): When reporting an
authorIan Lance Taylor <ian@airs.com>
Mon, 1 Apr 1996 22:33:05 +0000 (22:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 1 Apr 1996 22:33:05 +0000 (22:33 +0000)
overflow error, use the name of the symbol in the hash table if
available.
(aout_link_input_section_ext): Likewise.

bfd/ChangeLog
bfd/aoutx.h

index 88e3a24..ad0565d 100644 (file)
@@ -9,6 +9,11 @@ Mon Apr  1 10:39:24 1996  Jeffrey A Law  (law@cygnus.com)
 
 Mon Apr  1 12:35:36 1996  Ian Lance Taylor  <ian@cygnus.com>
 
+       * 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.
+
        * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
        defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
 
index 2b8407b..b8dd884 100644 (file)
@@ -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