elf_backend_relocate_section int vs. bfd_boolean
[deliverable/binutils-gdb.git] / bfd / elf32-msp430.c
index fd1922b3ddaef295546e5abd0dc10de071d61f28..03439622b84775b43512e269cbebdd447c3d748e 100644 (file)
@@ -1,5 +1,5 @@
 /*  MSP430-specific support for 32-bit ELF
-    Copyright (C) 2002-2020 Free Software Foundation, Inc.
+    Copyright (C) 2002-2021 Free Software Foundation, Inc.
     Contributed by Dmitry Diky <diwil@mail.ru>
 
     This file is part of BFD, the Binary File Descriptor library.
@@ -1411,7 +1411,7 @@ msp430_final_link_relocate (reloc_howto_type *       howto,
 
 /* Relocate an MSP430 ELF section.  */
 
-static bfd_boolean
+static int
 elf32_msp430_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
                               struct bfd_link_info * info,
                               bfd * input_bfd,
@@ -1855,8 +1855,8 @@ msp430_elf_relax_delete_bytes (bfd * abfd, asection * sec, bfd_vma addr,
                 the start of the next section.  */
              || (isym->st_value == toaddr
                  && name != NULL
-                 && (CONST_STRNEQ (name, ".Letext")
-                     || CONST_STRNEQ (name, ".LFE")))))
+                 && (startswith (name, ".Letext")
+                     || startswith (name, ".LFE")))))
        {
          if (debug_relocs)
            printf ("      adjusting value of local symbol %s from 0x%lx ",
This page took 0.026631 seconds and 4 git commands to generate.