diff options
Diffstat (limited to 'bfd/elf32-nios2.c')
-rw-r--r-- | bfd/elf32-nios2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c index 17e97bc..2fcfe6f 100644 --- a/bfd/elf32-nios2.c +++ b/bfd/elf32-nios2.c @@ -4539,10 +4539,10 @@ nios2_elf32_relocate_section (bfd *output_bfd, /* Implement elf-backend_section_flags: Convert NIOS2 specific section flags to bfd internal section flags. */ static bfd_boolean -nios2_elf32_section_flags (flagword *flags, const Elf_Internal_Shdr *hdr) +nios2_elf32_section_flags (const Elf_Internal_Shdr *hdr) { if (hdr->sh_flags & SHF_NIOS2_GPREL) - *flags |= SEC_SMALL_DATA; + hdr->bfd_section->flags |= SEC_SMALL_DATA; return TRUE; } |