summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/bfd/elf32-score7.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/bfd/elf32-score7.c')
-rw-r--r--binutils-2.25/bfd/elf32-score7.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/binutils-2.25/bfd/elf32-score7.c b/binutils-2.25/bfd/elf32-score7.c
index c75c7038..0b3cf202 100644
--- a/binutils-2.25/bfd/elf32-score7.c
+++ b/binutils-2.25/bfd/elf32-score7.c
@@ -1,5 +1,5 @@
/* 32-bit ELF support for S+core.
- Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
Contributed by
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
@@ -2376,6 +2376,12 @@ s7_bfd_score_elf_relocate_section (bfd *output_bfd,
/* For global symbols we look up the symbol in the hash-table. */
h = ((struct score_elf_link_hash_entry *)
elf_sym_hashes (input_bfd) [r_symndx - extsymoff]);
+
+ if (info->wrap_hash != NULL
+ && (input_section->flags & SEC_DEBUGGING) != 0)
+ h = ((struct score_elf_link_hash_entry *)
+ unwrap_hash_lookup (info, input_bfd, &h->root.root));
+
/* Find the real hash-table entry for this symbol. */
while (h->root.root.type == bfd_link_hash_indirect
|| h->root.root.type == bfd_link_hash_warning)
@@ -3000,7 +3006,7 @@ s7_bfd_score_elf_always_size_sections (bfd *output_bfd,
/* Calculate the total loadable size of the output. That will give us the
maximum number of GOT_PAGE entries required. */
- for (sub = info->input_bfds; sub; sub = sub->link_next)
+ for (sub = info->input_bfds; sub; sub = sub->link.next)
{
asection *subsection;