aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/nios2elf.em
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emultempl/nios2elf.em')
-rw-r--r--ld/emultempl/nios2elf.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/nios2elf.em b/ld/emultempl/nios2elf.em
index 02eb06f..816da6c 100644
--- a/ld/emultempl/nios2elf.em
+++ b/ld/emultempl/nios2elf.em
@@ -181,7 +181,7 @@ nios2elf_add_stub_section (const char *stub_sec_name, asection *input_section,
goto err_ret;
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;