summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2010-03-31 22:44:49 +0000
committerHans-Peter Nilsson <hp@axis.com>2010-03-31 22:44:49 +0000
commit950898b8241cc7ff0f8ecbd5b1f3600b08e4a823 (patch)
tree113e025eaae99d8c6f45028e26cd0ea404d4c41a /bfd/elf32-cris.c
parent18b071672ce17c138c2497251ae0b006edcca6c8 (diff)
downloadbinutils-redhat-950898b8241cc7ff0f8ecbd5b1f3600b08e4a823.tar.gz
* elf32-cris.c (cris_elf_relocate_section): Correct first argument
to _bfd_elf_get_dynamic_reloc_section. (elf_cris_discard_excess_dso_dynamics): Ditto.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 83ef984a3e..8abb09e2fd 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1512,7 +1512,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (sreloc == NULL)
{
sreloc = _bfd_elf_get_dynamic_reloc_section
- (input_bfd, input_section, /*rela?*/ TRUE);
+ (dynobj, input_section, /*rela?*/ TRUE);
/* The section should have been created in cris_elf_check_relocs,
but that function will not be called for objects which fail in
cris_elf_merge_private_bfd_data. */
@@ -3978,7 +3978,8 @@ elf_cris_discard_excess_dso_dynamics (h, inf)
for (s = h->pcrel_relocs_copied; s != NULL; s = s->next)
{
asection *sreloc
- = _bfd_elf_get_dynamic_reloc_section (s->section->owner,
+ = _bfd_elf_get_dynamic_reloc_section (elf_hash_table (info)
+ ->dynobj,
s->section,
/*rela?*/ TRUE);
sreloc->size -= s->count * sizeof (Elf32_External_Rela);