Fix AArch64 in the same way as other targets updated in 8170f7693bc0a9442c0aa28019792...
[binutils-gdb.git] / bfd / elf-bfd.h
index 4110ace3292935855979c3dd60337953585b4d73..820bc982af36e7afef5c63258cab3512c5766ee9 100644 (file)
@@ -2767,7 +2767,7 @@ extern asection _bfd_elf_large_com_section;
            memmove (rel, rel + count,                                  \
                     (relend - rel - count) * sizeof (*rel));           \
                                                                        \
-           input_section->reloc_count--;                               \
+           input_section->reloc_count -= count;                        \
            relend -= count;                                            \
            rel--;                                                      \
            continue;                                                   \