This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 6/9] [ARC] Add RELOC_FOR_GLOBAL_SYMBOL in ARC target code.
- From: Cupertino Miranda <Cupertino dot Miranda at synopsys dot com>
- To: binutils at sourceware dot org
- Cc: Cupertino dot Miranda at synopsys dot com, Claudiu dot Zissulescu at synopsys dot com, Francois dot Bedard at synopsys dot com
- Date: Tue, 23 May 2017 17:40:53 +0200
- Subject: [PATCH 6/9] [ARC] Add RELOC_FOR_GLOBAL_SYMBOL in ARC target code.
- Authentication-results: sourceware.org; auth=none
- References: <20170523154056.19234-1-cmiranda@synopsys.com>
This miss was identified in the context of openssh building for ARC.
bfd/ChangeLog:
Cupertino Miranda <cmiranda@synopsys.com>
elf32-arc.c (elf_arc_relocate_section): Added "call" to
RELOC_FOR_GLOBAL_SYMBOL macro.
---
bfd/elf32-arc.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index 901218a..117253d 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -1408,6 +1408,7 @@ elf_arc_relocate_section (bfd * output_bfd,
asection * sec;
struct elf_link_hash_entry * h2;
const char * msg;
+ bfd_boolean unresolved_reloc = FALSE;
struct arc_relocation_data reloc_data =
{
@@ -1495,6 +1496,14 @@ elf_arc_relocate_section (bfd * output_bfd,
}
else
{
+ bfd_boolean warned, ignored;
+ bfd_vma relocation ATTRIBUTE_UNUSED;
+
+ RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
+ r_symndx, symtab_hdr, sym_hashes,
+ h, sec, relocation,
+ unresolved_reloc, warned, ignored);
+
/* TODO: This code is repeated from below. We should
clean it and remove duplications.
Sec is used check for discarded sections.
--
2.9.0