X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felf32-nios2.c;h=2fcfe6fd6c1957fcf04a1e8fc18e92ad6dd8ce6c;hb=8c803a2dd7d3d742a3d0071914f557ef465afe71;hp=17e97bca5a8ff3ff834c9e813eaa28f79cceb8ab;hpb=7d4b2d2d29e2fc3af14d14412845615cc994cf91;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c index 17e97bca5a..2fcfe6fd6c 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; }