This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] rl78: Use BFD_VMA_FMT


Hello Dj,

on native i686:
elf32-rl78.c: In function ‘rl78_elf_relocate_section’:
elf32-rl78.c:654:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘bfd_vma’ [-Werror=format]
elf32-rl78.c:660:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘bfd_vma’ [-Werror=format]
elf32-rl78.c: In function ‘rl78_elf_relax_section’:
elf32-rl78.c:2399:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘bfd_vma’ [-Werror=format]

Checked in as obvious.


Thanks,
Jan


http://sourceware.org/ml/binutils-cvs/2011-12/msg00114.html

--- src/bfd/ChangeLog	2011/12/23 20:17:58	1.5558
+++ src/bfd/ChangeLog	2011/12/23 21:24:25	1.5559
@@ -1,5 +1,10 @@
 2011-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
+	* elf32-rl78.c (rl78_elf_relocate_section, rl78_elf_relax_section): Use
+	BFD_VMA_FMT.
+
+2011-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
 	* elf32-rl78.c (prev_alignment, sec_start): Remove unused variables.
 
 2011-12-23  Tristan Gingold  <gingold@adacore.com>
--- src/bfd/elf32-rl78.c	2011/12/23 20:17:59	1.4
+++ src/bfd/elf32-rl78.c	2011/12/23 21:24:25	1.5
@@ -651,13 +651,13 @@
 	  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 @@
 
 	  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)
 	    {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]