projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2420a8
)
* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
author
Nick Clifton
<nickc@redhat.com>
Mon, 11 Jan 2010 14:19:40 +0000
(14:19 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Mon, 11 Jan 2010 14:19:40 +0000
(14:19 +0000)
handling of R_V850_HI16_S relocation.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf32-v850.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 554227f2b4ecb44f0641f873629f4d33d0036e74..5c5e01bccf92c8cda3982ca4bf3aa88322b71b29 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-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>
PR 11103
diff --git
a/bfd/elf32-v850.c
b/bfd/elf32-v850.c
index 2965e290dd6c546ecff127f7cdb637623e077f60..d7aaed49f7d6dc4ede32c17ba2895ff77d1a9361 100644
(file)
--- a/
bfd/elf32-v850.c
+++ b/
bfd/elf32-v850.c
@@
-550,7
+550,7
@@
v850_elf_perform_relocation (bfd *abfd,
addend = (addend >> 16) + ((addend & 0x8000) != 0);
/* This relocation cannot overflow. */
- if (addend > 0x
7
fff)
+ if (addend > 0x
f
fff)
addend = 0;
insn = addend;