Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/bfd/elf32-cr16.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by monabuilder, Sun Dec 7 02:23:44 2008 UTC revision 21 by monamour, Mon Jul 27 20:34:36 2009 UTC
# Line 1259  cr16_elf_final_link_relocate (reloc_howt Line 1259  cr16_elf_final_link_relocate (reloc_howt
1259                              | (bfd_get_32 (input_bfd, hit_data) & 0xf0ff));                              | (bfd_get_32 (input_bfd, hit_data) & 0xf0ff));
1260    
1261                }                }
1262                else if (r_type == R_CR16_NUM32)
1263                  {
1264                     Rvalue1 = (bfd_get_32 (input_bfd, hit_data));
1265    
1266                     /* Add or subtract the offset value */
1267                     if (Rvalue1 & 0x80000000)
1268                       Rvalue -= (~Rvalue1 + 1) & 0xffffffff;
1269                     else
1270                       Rvalue += Rvalue1;
1271    
1272                    /* Check for Ranga */
1273                    if (Rvalue > 0xffffffff)
1274                      return bfd_reloc_overflow;
1275                  }
1276    
1277              bfd_put_32 (input_bfd, Rvalue, hit_data);              bfd_put_32 (input_bfd, Rvalue, hit_data);
1278            }            }
1279          break;          break;

Legend:
Removed from v.20  
changed lines
  Added in v.21

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26