Increment the ABIVERSION to 5 for MIPS objects with non-executable stacks.
[binutils-gdb.git] / bfd / elf32-nds32.c
index ffad0dbd8e4307bb603aa9c1484a8b7ca51843e0..5fffbf28d5e10d13a6e52acc96a6e6c47f34f3aa 100644 (file)
@@ -12344,8 +12344,8 @@ nds32_elf_relax_section (bfd *abfd, asection *sec,
       Elf_Internal_Rela *tmp_rel;
 
       /* Pad to alignment boundary.  Only handle current section alignment.  */
-      sec_size_align = (sec->size + (~((-1) << sec->alignment_power)))
-                      & ((-1) << sec->alignment_power);
+      sec_size_align = (sec->size + (~((-1U) << sec->alignment_power)))
+                      & ((-1U) << sec->alignment_power);
       if ((sec_size_align - sec->size) & 0x2)
        {
          insn16 = NDS32_NOP16;