aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-03-31 01:42:29 +0000
committerDJ Delorie <dj@redhat.com>2009-03-31 01:42:29 +0000
commitc301e700671dcc1de4693ff638cd08aa3be5ecd5 (patch)
treec70cdfa2e0574ade5664fe5ce8409387a3591b01 /bfd/elflink.c
parent4a19ce7eb959c47612f216c08a69907204312f88 (diff)
downloadgdb-c301e700671dcc1de4693ff638cd08aa3be5ecd5.zip
gdb-c301e700671dcc1de4693ff638cd08aa3be5ecd5.tar.gz
gdb-c301e700671dcc1de4693ff638cd08aa3be5ecd5.tar.bz2
* elflink.c (elf_link_input_bfd): Don't try to resolve complex
relocs when doing a relocatable link.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index c635cb0..9b6e3ed 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