]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Revert "_bfd_mips_elf_final_link: Notify user about wrong .reginfo size"
authorMaciej W. Rozycki <macro@mips.com>
Mon, 19 Feb 2018 18:38:41 +0000 (18:38 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Mon, 19 Feb 2018 18:38:41 +0000 (18:38 +0000)
Revert commit 58807c48a5a3 ("_bfd_mips_elf_final_link: Notify user about
wrong .reginfo size") now that the size of the `.reginfo' section has
been truly fixed in `_bfd_mips_elf_section_processing', meaning that the
offending condition can be asserted again.

bfd/
Revert
2018-01-12  Vlad Ivanov  <vlad@ivanov.email>

* elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
.reginfo section has wrong size.

bfd/ChangeLog
bfd/elfxx-mips.c

index 6820732cc69b67b0efbef6ab1cdc5b85187efd70..2ef145c26cba9e903e84b209742e429a9d8908f5 100644 (file)
@@ -1,3 +1,11 @@
+2018-02-19  Maciej W. Rozycki  <macro@mips.com>
+
+       Revert
+       2018-01-12  Vlad Ivanov  <vlad@ivanov.email>
+
+       * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
+       .reginfo section has wrong size.
+
 2018-02-19  Maciej W. Rozycki  <macro@mips.com>
 
        * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
index 1b24f66797a6d0f41c2eecc45423f6b850173698..e57d4cde57781e1ead055824512fbb7b38bc5611 100644 (file)
@@ -14412,16 +14412,7 @@ _bfd_mips_elf_final_link (bfd *abfd, struct bfd_link_info *info)
            }
 
          /* Size has been set in _bfd_mips_elf_always_size_sections.  */
-         if (o->size != sizeof (Elf32_External_RegInfo))
-           {
-             _bfd_error_handler
-               (_("%pB: .reginfo section size should be %ld bytes, "
-                  "actual size is %" PRId64),
-                abfd, (unsigned long) sizeof (Elf32_External_RegInfo),
-                (int64_t) o->size);
-
-             return FALSE;
-           }
+         BFD_ASSERT(o->size == sizeof (Elf32_External_RegInfo));
 
          /* Skip this section later on (I don't think this currently
             matters, but someday it might).  */