]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-csky.c
bfd_section_* macros
[thirdparty/binutils-gdb.git] / bfd / elf32-csky.c
index b3451b60b217720e9ce4bb5fcf0d1d34fd4812f0..16897b3930e758ef7a9252180a13516ff645104d 100644 (file)
@@ -2092,7 +2092,7 @@ csky_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
          if (htab->elf.hplt != NULL)
            strip_section = FALSE;
        }
-      else if (CONST_STRNEQ (bfd_get_section_name (dynobj, s), ".rel") )
+      else if (CONST_STRNEQ (bfd_section_name (s), ".rel") )
        {
          if (s->size != 0 )
            relocs = TRUE;
@@ -5070,7 +5070,7 @@ csky_elf_relocate_section (bfd *                  output_bfd,
                  if (name == NULL)
                    break;
                  if (*name == '\0')
-                   name = bfd_section_name (input_bfd, sec);
+                   name = bfd_section_name (sec);
                }
              (*info->callbacks->reloc_overflow)
                (info,