Commit MetaInfo

Revisioneb13e35359ba6b0cb1f900defca6af3790ff1dbb (tree)
Time2014-05-26 13:16:49
AuthorYoshinori Sato <ysato@sa76...>
CommiterYoshinori Sato

Log Message

SH relocation fix

Change Summary

Incremental Difference

--- a/elf2flt.c
+++ b/elf2flt.c
@@ -717,6 +717,12 @@ dump_symbols(symbols, number_of_symbols);
717717
718718 flat_reloc_count++;
719719 break;
720+#elif defined (TARGET_sh)
721+ case R_SH_DIR32:
722+ goto good_32bit_resolved_reloc;
723+ case R_SH_REL32:
724+ relocation_needed = 0;
725+ break;
720726 #else
721727 default:
722728 /* The default is to assume that the
@@ -1164,10 +1170,8 @@ NIOS2_RELOC_ERR:
11641170 sym_addr += sym_vma + q->addend;
11651171 break;
11661172 case R_SH_REL32:
1167- sym_vma = 0;
1168- sym_addr += sym_vma + q->addend;
1169- sym_addr -= q->address;
1170- break;
1173+ relocation_needed = 0;
1174+ break;
11711175 #endif /* TARGET_sh */
11721176
11731177 #ifdef TARGET_e1
Show on old repository browser