freemyipod r871 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r870‎ | r871 | r872 >
Date:16:31, 24 July 2013
Author:theseven
Status:new
Tags:
Comment:
elf2emcoreapp: Ignore R_ARM_NONE relocation entries
Modified paths:
  • /tools/elf2emcoreapp/elf2emcoreapp.c (modified) (history)

Diff [purge]

Index: tools/elf2emcoreapp/elf2emcoreapp.c
@@ -772,7 +772,7 @@
773773 sym_reloc_size = bfd_get_reloc_size(q->howto);
774774
775775 #if !defined(TARGET_h8300) && !defined(TARGET_e1) && !defined(TARGET_bfin) && !defined(TARGET_m68k)
776 - if (sym_reloc_size != 4) {
 776+ if ((*p)->howto->type && sym_reloc_size != 4) {
777777 printf("ERROR: bad reloc type %d size=%d for symbol=%s\n",
778778 (*p)->howto->type, sym_reloc_size, sym_name);
779779 bad_relocs++;
@@ -782,6 +782,7 @@
783783 #endif
784784
785785 switch ((*p)->howto->type) {
 786+ case 0: break;
786787
787788 #if defined(TARGET_m68k)
788789 case R_68K_32:

Follow-up revisions

RevisionCommit summaryAuthorDate
r876elf2emcoreapp: Revert r871/r872, fix BFD instead.theseven13:17, 27 July 2013