aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/cskyelf.em
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emultempl/cskyelf.em')
-rw-r--r--ld/emultempl/cskyelf.em4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/emultempl/cskyelf.em b/ld/emultempl/cskyelf.em
index 10d037c..9184808 100644
--- a/ld/emultempl/cskyelf.em
+++ b/ld/emultempl/cskyelf.em
@@ -180,10 +180,10 @@ elf32_csky_add_stub_section (const char *stub_sec_name,
if (stub_sec == NULL)
goto err_ret;
- bfd_set_section_alignment (stub_file->the_bfd, stub_sec, 3);
+ bfd_set_section_alignment (stub_sec, 3);
output_section = input_section->output_section;
- secname = bfd_get_section_name (output_section->owner, output_section);
+ secname = bfd_section_name (output_section);
os = lang_output_section_find (secname);
info.input_section = input_section;