mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 23:26:51 +08:00
* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
handling of R_V850_HI16_S relocation.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-01-11 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
|
||||||
|
handling of R_V850_HI16_S relocation.
|
||||||
|
|
||||||
2010-01-11 Alan Modra <amodra@gmail.com>
|
2010-01-11 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 11103
|
PR 11103
|
||||||
|
@ -550,7 +550,7 @@ v850_elf_perform_relocation (bfd *abfd,
|
|||||||
addend = (addend >> 16) + ((addend & 0x8000) != 0);
|
addend = (addend >> 16) + ((addend & 0x8000) != 0);
|
||||||
|
|
||||||
/* This relocation cannot overflow. */
|
/* This relocation cannot overflow. */
|
||||||
if (addend > 0x7fff)
|
if (addend > 0xffff)
|
||||||
addend = 0;
|
addend = 0;
|
||||||
|
|
||||||
insn = addend;
|
insn = addend;
|
||||||
|
Reference in New Issue
Block a user