 -                                                    + isym->st_value, sec);
                    val = bfd_get_32 (abfd, ocontents + irelscan->r_offset);
 +                  if (val != irelscan->r_addend) {
-+			fprintf(stderr, "%d: CORRUPT relax reloc! %x %lx\n", __LINE__, val, irelscan->r_addend);
++			fprintf(stderr, "%d: CORRUPT relax reloc! %x %lx\n", __LINE__, val, (unsigned long)irelscan->r_addend);
 +                  }
 +
 +                  irelscan->r_addend -= calc_fixup (irelscan->r_addend, 0, sec);

                   /* This was a PC-relative instruction that was completely resolved.  */
                   if (ocontents == NULL)
                     {
@@ -1936,15 +1965,15 @@ microblaze_elf_relax_section (bfd *abfd,
 		        }
 		    }
 

 END_RELOC_NUMBERS (R_MICROBLAZE_max)
 
-- 
1.9.0

