aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-rl78.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-12-23 21:24:25 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-12-23 21:24:25 +0000
commit23503fbaea041bd264d4d5447d1670cd7ef9fbfb (patch)
tree054f5f775edc5ca9fc01762ceb382de62d75f5b3 /bfd/elf32-rl78.c
parentb86d19250d129ef3df55239f290082c1349a2ae5 (diff)
downloadgdb-23503fbaea041bd264d4d5447d1670cd7ef9fbfb.zip
gdb-23503fbaea041bd264d4d5447d1670cd7ef9fbfb.tar.gz
gdb-23503fbaea041bd264d4d5447d1670cd7ef9fbfb.tar.bz2
bfd/
* elf32-rl78.c (rl78_elf_relocate_section, rl78_elf_relax_section): Use BFD_VMA_FMT.
Diffstat (limited to 'bfd/elf32-rl78.c')
-rw-r--r--bfd/elf32-rl78.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/elf32-rl78.c b/bfd/elf32-rl78.c
index 6d52231..d408218 100644
--- a/bfd/elf32-rl78.c
+++ b/bfd/elf32-rl78.c
@@ -651,13 +651,13 @@ rl78_elf_relocate_section
break;
case R_RL78_RH_SFR:
- printf("SFR 0x%lx\n", relocation);
+ printf("SFR 0x%" BFD_VMA_FMT "x\n", relocation);
RANGE (0xfff00, 0xfffff);
OP (0) = relocation & 0xff;
break;
case R_RL78_RH_SADDR:
- printf("SADDR 0x%lx\n", relocation);
+ printf("SADDR 0x%" BFD_VMA_FMT "x\n", relocation);
RANGE (0xffe20, 0xfff1f);
OP (0) = relocation & 0xff;
printf(" - in\n");
@@ -2396,7 +2396,9 @@ rl78_elf_relax_section
GET_RELOC;
- printf("relax_addr16 detected, symval 0x%lx %02x %02x\n", symval, insn[0], insn[1]);
+ printf ("relax_addr16 detected, "
+ "symval 0x%" BFD_VMA_FMT "x %02x %02x\n",
+ symval, insn[0], insn[1]);
if (0xffe20 <= symval && symval <= 0xfffff)
{