diff ticoff/thumbdis.c @ 115:2f23301d2f86

tiobjd: literal reloc recognition restricted to RTYPE_LONG
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 03 Apr 2014 06:50:07 +0000
parents d97fbe98600b
children f9fde7f36ae3
line wrap: on
line diff
--- a/ticoff/thumbdis.c	Thu Apr 03 06:42:39 2014 +0000
+++ b/ticoff/thumbdis.c	Thu Apr 03 06:50:07 2014 +0000
@@ -11,7 +11,7 @@
 #include "globals.h"
 
 extern unsigned get_u16(), get_u32();
-extern struct internal_reloc *find_reloc();
+extern struct internal_reloc *find_word32_reloc();
 
 extern char *regnames[16], *condition_decode[16], *shift_types[4];
 
@@ -123,7 +123,7 @@
 	off += 4;
 	litoff = off + loff;
 	if (litoff+4 <= sec->size) {
-		rel = find_reloc(sec, litoff);
+		rel = find_word32_reloc(sec, litoff);
 		datum = get_u32(filemap + sec->data_offset + litoff);
 		printf("ldr\t%s, =", regnames[(word>>8)&7]);
 		if (rel)