Skip to content
Snippets Groups Projects
Commit b4928193 authored by Nick Clifton's avatar Nick Clifton
Browse files

* elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly compensate

  for high bit set in R_MEP_LOW16.
parent 1a412f5f
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment