diff options
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/cpu-ns32k.c | 4 | ||||
-rw-r--r-- | bfd/elf32-csky.c | 4 | ||||
-rw-r--r-- | bfd/elf32-nds32.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1cf0624..8a32d5c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2020-12-07 Alan Modra <amodra@gmail.com> + + * elf32-csky.c (csky_relocate_contents): Correct negate test. + * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Likewise. + * elf32-nds32.c (nds32_relocate_contents): Likewise. + 2020-12-05 Maciej W. Rozycki <macro@linux-mips.org> * elf32-vax.c (elf_vax_check_relocs) <R_VAX_GOT32>: Use diff --git a/bfd/cpu-ns32k.c b/bfd/cpu-ns32k.c index 789e56f..a7aa9f5 100644 --- a/bfd/cpu-ns32k.c +++ b/bfd/cpu-ns32k.c @@ -574,9 +574,7 @@ _bfd_do_ns32k_reloc_contents (reloc_howto_type *howto, bfd_vma x; bfd_boolean overflow; - /* If the size is negative, negate RELOCATION. This isn't very - general. */ - if (howto->size < 0) + if (howto->negate) relocation = -relocation; /* Get the value we are going to relocate. */ diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c index 395e6ff..8d48a03 100644 --- a/bfd/elf32-csky.c +++ b/bfd/elf32-csky.c @@ -3927,9 +3927,7 @@ csky_relocate_contents (reloc_howto_type *howto, unsigned int rightshift = howto->rightshift; unsigned int bitpos = howto->bitpos; - /* If the size is negative, negate RELOCATION. This isn't very - general. */ - if (howto->size < 0) + if (howto->negate) relocation = -relocation; /* FIXME: these macros should be defined at file head or head file head. */ diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index 233af38..105d7f5 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -4492,9 +4492,7 @@ nds32_relocate_contents (reloc_howto_type *howto, bfd *input_bfd, unsigned int rightshift = howto->rightshift; unsigned int bitpos = howto->bitpos; - /* If the size is negative, negate RELOCATION. This isn't very - general. */ - if (howto->size < 0) + if (howto->negate) relocation = -relocation; /* Get the value we are going to relocate. */ |