diff options
author | Nick Clifton <nickc@redhat.com> | 2007-07-04 14:23:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-07-04 14:23:22 +0000 |
commit | b49281938d1f72087aab9249c3d593622ebfe580 (patch) | |
tree | c8508c247a75df6ac1e29c4ad4df4f28a41abd97 | |
parent | 1a412f5fd37a833c417bde3ac16e1cbf15433b49 (diff) | |
download | fsf-binutils-gdb-b49281938d1f72087aab9249c3d593622ebfe580.zip fsf-binutils-gdb-b49281938d1f72087aab9249c3d593622ebfe580.tar.gz fsf-binutils-gdb-b49281938d1f72087aab9249c3d593622ebfe580.tar.bz2 |
* elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly compensate
for high bit set in R_MEP_LOW16.
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/elf32-mep.c | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8565680..7d88606 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2007-07-04 Nick Clifton <nickc@redhat.com> + + Import this patch from an internal tree: + + 2001-07-17 Richard Henderson <rth@redhat.com> + + * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly + compensate for high bit set in R_MEP_LOW16. + 2007-07-03 Joseph Myers <joseph@codesourcery.com> * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c index 0bba7e5..d1ee6a9 100644 --- a/bfd/elf32-mep.c +++ b/bfd/elf32-mep.c @@ -333,6 +333,8 @@ mep_final_link_relocate byte[3^e2] = ((u >> 16) & 0xff); break; case R_MEP_HI16S: /* ----------------vutsrqponmlkjihg */ + if (s & 0x8000) + s += 0x10000; byte[2^e2] = ((s >> 24) & 0xff); byte[3^e2] = ((s >> 16) & 0xff); break; |