1 diff -Nur elf2flt-7e33f28df198c46764021ed14408bd262751e148.orig/flthdr.c elf2flt-7e33f28df198c46764021ed14408bd262751e148/flthdr.c
2 --- elf2flt-7e33f28df198c46764021ed14408bd262751e148.orig/flthdr.c 2019-09-30 22:07:49.000000000 +0200
3 +++ elf2flt-7e33f28df198c46764021ed14408bd262751e148/flthdr.c 2020-03-09 14:41:48.348042903 +0100
6 raddr = flat_get_relocate_addr(r);
7 printf(" %u\t0x%08lx (0x%08"PRIx32")\t", i, r, raddr);
8 +#if defined(TARGET_h8300)
9 + raddr &= ~0x00000001;
11 fseek_stream(&ifp, sizeof(old_hdr) + raddr, SEEK_SET);
12 fread_stream(&addr, sizeof(addr), 1, &ifp);
13 +#if defined(TARGET_h8300)
18 printf("%"PRIx32"\n", addr);