From c301e700671dcc1de4693ff638cd08aa3be5ecd5 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 31 Mar 2009 01:42:29 +0000 Subject: * elflink.c (elf_link_input_bfd): Don't try to resolve complex relocs when doing a relocatable link. --- bfd/elflink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/elflink.c') diff --git a/bfd/elflink.c b/bfd/elflink.c index c635cb0691..9b6e3ed86c 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9329,7 +9329,8 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) sym, *ps); } - if (s_type == STT_RELC || s_type == STT_SRELC) + if ((s_type == STT_RELC || s_type == STT_SRELC) + && !finfo->info->relocatable) { bfd_vma val; bfd_vma dot = (rel->r_offset -- cgit v1.2.1