aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-mmix.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-03-27 10:16:19 +0000
committerAlan Modra <amodra@gmail.com>2004-03-27 10:16:19 +0000
commit6a9cae7f5ceb9b06ebb69d74a34cc9c9fed9db65 (patch)
treedc6d2aa5a09249e22c62f9d35dd79dbb76be32cb /bfd/elf64-mmix.c
parent140f6c8e6d24d9b1b3e6c63e9fe78d84e89ea2b0 (diff)
downloadgdb-6a9cae7f5ceb9b06ebb69d74a34cc9c9fed9db65.zip
gdb-6a9cae7f5ceb9b06ebb69d74a34cc9c9fed9db65.tar.gz
gdb-6a9cae7f5ceb9b06ebb69d74a34cc9c9fed9db65.tar.bz2
* elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
"name" for global syms accidentally removed in 2004-03-20 change.
Diffstat (limited to 'bfd/elf64-mmix.c')
-rw-r--r--bfd/elf64-mmix.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/elf64-mmix.c b/bfd/elf64-mmix.c
index 7f34a83..dda7086 100644
--- a/bfd/elf64-mmix.c
+++ b/bfd/elf64-mmix.c
@@ -1474,9 +1474,11 @@ mmix_elf_relocate_section (output_bfd, info, input_bfd, input_section,
sec = local_sections [r_symndx];
relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
- name = bfd_elf_string_from_elf_section
- (input_bfd, symtab_hdr->sh_link, sym->st_name);
- name = (name == NULL) ? bfd_section_name (input_bfd, sec) : name;
+ name = bfd_elf_string_from_elf_section (input_bfd,
+ symtab_hdr->sh_link,
+ sym->st_name);
+ if (name == NULL)
+ name = bfd_section_name (input_bfd, sec);
}
else
{
@@ -1486,6 +1488,7 @@ mmix_elf_relocate_section (output_bfd, info, input_bfd, input_section,
r_symndx, symtab_hdr, sym_hashes,
h, sec, relocation,
unresolved_reloc, undefined_signalled);
+ name = h->root.root.string;
}
r = mmix_final_link_relocate (howto, input_section,