aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-csky.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-csky.c')
-rw-r--r--bfd/elf32-csky.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c
index 47a6389..40781a0 100644
--- a/bfd/elf32-csky.c
+++ b/bfd/elf32-csky.c
@@ -1912,7 +1912,7 @@ csky_elf_late_size_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Set the contents of the .interp section to the interpreter. */
if (!bfd_link_pic (info) && !info->nointerp)
{
- s = bfd_get_section_by_name (dynobj, ".interp");
+ s = htab->elf.interp;
BFD_ASSERT (s != NULL);
s->size = sizeof ELF_DYNAMIC_INTERPRETER;
s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER;
@@ -3446,13 +3446,12 @@ elf32_csky_size_stubs (bfd *output_bfd,
while (1)
{
bfd *input_bfd;
- unsigned int bfd_indx;
asection *stub_sec;
bool stub_changed = false;
- for (input_bfd = info->input_bfds, bfd_indx = 0;
+ for (input_bfd = info->input_bfds;
input_bfd != NULL;
- input_bfd = input_bfd->link.next, bfd_indx++)
+ input_bfd = input_bfd->link.next)
{
Elf_Internal_Shdr *symtab_hdr;
asection *section;
@@ -4381,8 +4380,8 @@ csky_elf_relocate_section (bfd * output_bfd,
else
#endif
RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
- rel, 1, relend, howto, 0,
- contents);
+ rel, 1, relend, R_CKCORE_NONE,
+ howto, 0, contents);
}
if (bfd_link_relocatable (info))