diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
commit | 0af1713e7cd57b52f6c81f73aa58934132198880 (patch) | |
tree | af4b52a6c5f3c8cd570e4f266f019cf552d6f442 /bfd | |
parent | 22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff) | |
download | gdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2 |
Silence gcc printf warnings
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/coff-ppc.c | 6 | ||||
-rw-r--r-- | bfd/coffgen.c | 7 | ||||
-rw-r--r-- | bfd/ecoff.c | 2 | ||||
-rw-r--r-- | bfd/ecofflink.c | 5 | ||||
-rw-r--r-- | bfd/elf.c | 4 | ||||
-rw-r--r-- | bfd/elf32-frv.c | 4 | ||||
-rw-r--r-- | bfd/elf32-iq2000.c | 4 | ||||
-rw-r--r-- | bfd/elf32-m32c.c | 4 | ||||
-rw-r--r-- | bfd/elf32-mep.c | 4 | ||||
-rw-r--r-- | bfd/elf32-mt.c | 4 | ||||
-rw-r--r-- | bfd/elf32-sh-symbian.c | 5 | ||||
-rw-r--r-- | bfd/elf64-hppa.c | 2 | ||||
-rw-r--r-- | bfd/libcoff.h | 2 | ||||
-rw-r--r-- | bfd/mach-o.c | 6 | ||||
-rw-r--r-- | bfd/peXXigen.c | 29 | ||||
-rw-r--r-- | bfd/pef.c | 4 | ||||
-rw-r--r-- | bfd/ppcboot.c | 14 | ||||
-rw-r--r-- | bfd/vms-misc.c | 2 | ||||
-rw-r--r-- | bfd/xsym.c | 10 |
20 files changed, 70 insertions, 55 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d9797c7..6f2c882 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2008-07-30 Alan Modra <amodra@bigpond.net.au> + + * coff-ppc.c, coffgen.c, ecoff.c, ecofflink.c, elf.c, elf32-frv.c, + elf32-iq2000.c, elf32-m32c.c, elf32-mep.c, elf32-mt.c, + elf32-sh-symbian.c, elf64-hppa.c, mach-o.c, peXXigen.c, pef.c, + ppcboot.c, vms-misc.c, xsym.c: Silence gcc warnings. + 2008-07-28 Daniel Jacobowitz <dan@codesourcery.com> * elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c index 6f903e8..eed84a0 100644 --- a/bfd/coff-ppc.c +++ b/bfd/coff-ppc.c @@ -1,6 +1,6 @@ /* BFD back-end for PowerPC Microsoft Portable Executable files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Original version pieced together by Kim Knuttila (krk@cygnus.com) @@ -1566,8 +1566,8 @@ dump_toc (vfile) { fprintf (file, _("**** global_toc_size %ld(%lx), thunk_size %ld(%lx)\n"), - global_toc_size, global_toc_size, - thunk_size, thunk_size); + global_toc_size, (unsigned long) global_toc_size, + thunk_size, (unsigned long) thunk_size); cat = _("Out of bounds!"); } } diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 0e8b7ed..98b5bbe 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -1,6 +1,6 @@ /* Support for the generic parts of COFF, for BFD. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2007 + 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc. Written by Cygnus Support. @@ -1946,7 +1946,7 @@ coff_print_symbol (bfd *abfd, /* Probably a section symbol ? */ { fprintf (file, "AUX scnlen 0x%lx nreloc %d nlnno %d", - (long) auxp->u.auxent.x_scn.x_scnlen, + (unsigned long) auxp->u.auxent.x_scn.x_scnlen, auxp->u.auxent.x_scn.x_nreloc, auxp->u.auxent.x_scn.x_nlinno); if (auxp->u.auxent.x_scn.x_checksum != 0 @@ -1972,7 +1972,8 @@ coff_print_symbol (bfd *abfd, llnos = auxp->u.auxent.x_sym.x_fcnary.x_fcn.x_lnnoptr; fprintf (file, "AUX tagndx %ld ttlsiz 0x%lx lnnos %ld next %ld", - tagndx, auxp->u.auxent.x_sym.x_misc.x_fsize, + tagndx, + (unsigned long) auxp->u.auxent.x_sym.x_misc.x_fsize, llnos, next); break; } diff --git a/bfd/ecoff.c b/bfd/ecoff.c index 9b2a1c9..a31bdb9 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -1038,7 +1038,7 @@ ecoff_emit_aggregate (bfd *abfd, sprintf (string, "%s %s { ifd = %u, index = %lu }", which, name, ifd, - ((long) indx + ((unsigned long) indx + debug_info->symbolic_header.iextMax)); } diff --git a/bfd/ecofflink.c b/bfd/ecofflink.c index 0b363a1..072c97a 100644 --- a/bfd/ecofflink.c +++ b/bfd/ecofflink.c @@ -1,6 +1,6 @@ /* Routines to link ECOFF debugging information. Copyright 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>. This file is part of BFD, the Binary File Descriptor library. @@ -718,7 +718,8 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap, lookup = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 20); if (lookup == NULL) return FALSE; - sprintf (lookup, "%s %lx %lx", name, fdr.csym, fdr.caux); + sprintf (lookup, "%s %lx %lx", name, (unsigned long) fdr.csym, + (unsigned long) fdr.caux); fh = string_hash_lookup (&ainfo->fdr_hash, lookup, TRUE, TRUE); free (lookup); @@ -1393,7 +1393,7 @@ bfd_elf_print_symbol (bfd *abfd, case bfd_print_symbol_more: fprintf (file, "elf "); bfd_fprintf_vma (abfd, file, symbol->value); - fprintf (file, " %lx", (long) symbol->flags); + fprintf (file, " %lx", (unsigned long) symbol->flags); break; case bfd_print_symbol_all: { @@ -7836,7 +7836,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note) /* Make a ".module/xxxxxxxx" section. */ /* module_info.base_address */ base_addr = bfd_get_32 (abfd, note->descdata + 4); - sprintf (buf, ".module/%08lx", (long) base_addr); + sprintf (buf, ".module/%08lx", (unsigned long) base_addr); len = strlen (buf) + 1; name = bfd_alloc (abfd, len); diff --git a/bfd/elf32-frv.c b/bfd/elf32-frv.c index aad8253..01e15f9 100644 --- a/bfd/elf32-frv.c +++ b/bfd/elf32-frv.c @@ -1,5 +1,5 @@ /* FRV-specific support for 32-bit ELF. - Copyright 2002, 2003, 2004, 2005, 2006, 2007 + Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -6838,7 +6838,7 @@ frv_elf_print_private_bfd_data (abfd, ptr) _bfd_elf_print_private_bfd_data (abfd, ptr); flags = elf_elfheader (abfd)->e_flags; - fprintf (file, _("private flags = 0x%lx:"), (long)flags); + fprintf (file, _("private flags = 0x%lx:"), (unsigned long) flags); switch (flags & EF_FRV_CPU_MASK) { diff --git a/bfd/elf32-iq2000.c b/bfd/elf32-iq2000.c index 73ab8e9..4dcc866 100644 --- a/bfd/elf32-iq2000.c +++ b/bfd/elf32-iq2000.c @@ -1,5 +1,5 @@ /* IQ2000-specific support for 32-bit ELF. - Copyright (C) 2003, 2004, 2005, 2006, 2007 + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -886,7 +886,7 @@ iq2000_elf_print_private_bfd_data (bfd *abfd, void * ptr) _bfd_elf_print_private_bfd_data (abfd, ptr); flags = elf_elfheader (abfd)->e_flags; - fprintf (file, _("private flags = 0x%lx:"), (long)flags); + fprintf (file, _("private flags = 0x%lx:"), (unsigned long) flags); switch (flags & EF_IQ2000_CPU_MASK) { diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c index b188426..5f45784 100644 --- a/bfd/elf32-m32c.c +++ b/bfd/elf32-m32c.c @@ -1,5 +1,5 @@ /* M16C/M32C specific support for 32-bit ELF. - Copyright (C) 2005, 2006, 2007 + Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -847,7 +847,7 @@ m32c_elf_print_private_bfd_data (bfd *abfd, PTR ptr) _bfd_elf_print_private_bfd_data (abfd, ptr); flags = elf_elfheader (abfd)->e_flags; - fprintf (file, _("private flags = 0x%lx:"), (long)flags); + fprintf (file, _("private flags = 0x%lx:"), (unsigned long) flags); switch (flags & EF_M32C_CPU_MASK) { diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c index 7839617..fb2bed3 100644 --- a/bfd/elf32-mep.c +++ b/bfd/elf32-mep.c @@ -1,5 +1,5 @@ /* MeP-specific support for 32-bit ELF. - Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -706,7 +706,7 @@ mep_elf_print_private_bfd_data (bfd * abfd, void * ptr) _bfd_elf_print_private_bfd_data (abfd, ptr); flags = elf_elfheader (abfd)->e_flags; - fprintf (file, _("private flags = 0x%lx"), (long)flags); + fprintf (file, _("private flags = 0x%lx"), (unsigned long) flags); partial_flags = (flags & EF_MEP_CPU_MASK) >> 24; if (partial_flags < ARRAY_SIZE (core_names)) diff --git a/bfd/elf32-mt.c b/bfd/elf32-mt.c index 3f97684..9b2758e 100644 --- a/bfd/elf32-mt.c +++ b/bfd/elf32-mt.c @@ -1,5 +1,5 @@ /* Morpho Technologies MT specific support for 32-bit ELF - Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -580,7 +580,7 @@ mt_elf_print_private_bfd_data (bfd * abfd, void * ptr) _bfd_elf_print_private_bfd_data (abfd, ptr); flags = elf_elfheader (abfd)->e_flags; - fprintf (file, _("private flags = 0x%lx:"), (long)flags); + fprintf (file, _("private flags = 0x%lx:"), (unsigned long) flags); switch (flags & EF_MT_CPU_MASK) { diff --git a/bfd/elf32-sh-symbian.c b/bfd/elf32-sh-symbian.c index 361031a..cec0d03 100644 --- a/bfd/elf32-sh-symbian.c +++ b/bfd/elf32-sh-symbian.c @@ -1,5 +1,5 @@ /* Renesas / SuperH specific support for Symbian 32-bit ELF files - Copyright 2004, 2005, 2006, 2007 + Copyright 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Red Hat @@ -605,7 +605,8 @@ sh_symbian_relocate_section (bfd * output_bfd, BFD_ASSERT (ptr->new_symndx); if (SYMBIAN_DEBUG) fprintf (stderr, "convert reloc %lx from using index %ld to using index %ld\n", - (long) rel->r_info, (long) ELF32_R_SYM (rel->r_info), ptr->new_symndx); + (unsigned long) rel->r_info, + (long) ELF32_R_SYM (rel->r_info), ptr->new_symndx); rel->r_info = ELF32_R_INFO (ptr->new_symndx, r_type); break; } diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 2359add..3738d2b 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -514,7 +514,7 @@ get_dyn_name (abfd, h, rel, pbuf, plen) { nlen = sprintf (buf, "%x:%lx", sec->id & 0xffffffff, - (long) ELF64_R_SYM (rel->r_info)); + (unsigned long) ELF64_R_SYM (rel->r_info)); if (rel->r_addend) { buf[nlen++] = '+'; diff --git a/bfd/libcoff.h b/bfd/libcoff.h index f21e0e6..9d3b33f 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -4,7 +4,7 @@ /* BFD COFF object file private structure. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Written by Cygnus Support. diff --git a/bfd/mach-o.c b/bfd/mach-o.c index bde89b0..d8b248e 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -556,7 +556,7 @@ bfd_mach_o_write_contents (bfd *abfd) default: fprintf (stderr, "unable to write unknown load command 0x%lx\n", - (long) cur->type); + (unsigned long) cur->type); return FALSE; } } @@ -1576,7 +1576,7 @@ bfd_mach_o_object_p (bfd *abfd) || header.byteorder == BFD_ENDIAN_LITTLE)) { fprintf (stderr, "unknown header byte-order value 0x%lx\n", - (long) header.byteorder); + (unsigned long) header.byteorder); goto wrong; } @@ -1623,7 +1623,7 @@ bfd_mach_o_core_p (bfd *abfd) || header.byteorder == BFD_ENDIAN_LITTLE)) { fprintf (stderr, "unknown header byte-order value 0x%lx\n", - (long) header.byteorder); + (unsigned long) header.byteorder); abort (); } diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 7be1f54..0c56067 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1310,7 +1310,7 @@ pe_print_idata (bfd * abfd, void * vfile) && first_thunk != 0 && first_thunk != hint_addr) fprintf (file, "\t%04lx", - (long) bfd_get_32 (abfd, ft_data + ft_idx + j)); + (unsigned long) bfd_get_32 (abfd, ft_data + ft_idx + j)); fprintf (file, "\n"); } #else @@ -1342,7 +1342,7 @@ pe_print_idata (bfd * abfd, void * vfile) && first_thunk != 0 && first_thunk != hint_addr) fprintf (file, "\t%04lx", - (long) bfd_get_32 (abfd, ft_data + ft_idx + j)); + (unsigned long) bfd_get_32 (abfd, ft_data + ft_idx + j)); fprintf (file, "\n"); } @@ -1961,7 +1961,7 @@ pe_print_reloc (bfd * abfd, void * vfile) fprintf (file, _("\nVirtual Address: %08lx Chunk size %ld (0x%lx) Number of fixups %ld\n"), - (unsigned long) virtual_address, size, size, number); + (unsigned long) virtual_address, size, (unsigned long) size, number); for (j = 0; j < number; ++j) { @@ -1974,7 +1974,7 @@ pe_print_reloc (bfd * abfd, void * vfile) fprintf (file, _("\treloc %4d offset %4x [%4lx] %s"), - j, off, (long) (off + virtual_address), tbl[t]); + j, off, (unsigned long) (off + virtual_address), tbl[t]); /* HIGHADJ takes an argument, - the next record *is* the low 16 bits of addend. */ @@ -2064,11 +2064,11 @@ _bfd_XX_print_private_bfd_data_common (bfd * abfd, void * vfile) fprintf (file, "\t(%s)",name); fprintf (file, "\nMajorLinkerVersion\t%d\n", i->MajorLinkerVersion); fprintf (file, "MinorLinkerVersion\t%d\n", i->MinorLinkerVersion); - fprintf (file, "SizeOfCode\t\t%08lx\n", i->SizeOfCode); + fprintf (file, "SizeOfCode\t\t%08lx\n", (unsigned long) i->SizeOfCode); fprintf (file, "SizeOfInitializedData\t%08lx\n", - i->SizeOfInitializedData); + (unsigned long) i->SizeOfInitializedData); fprintf (file, "SizeOfUninitializedData\t%08lx\n", - i->SizeOfUninitializedData); + (unsigned long) i->SizeOfUninitializedData); fprintf (file, "AddressOfEntryPoint\t"); fprintf_vma (file, i->AddressOfEntryPoint); fprintf (file, "\nBaseOfCode\t\t"); @@ -2091,10 +2091,10 @@ _bfd_XX_print_private_bfd_data_common (bfd * abfd, void * vfile) fprintf (file, "MinorImageVersion\t%d\n", i->MinorImageVersion); fprintf (file, "MajorSubsystemVersion\t%d\n", i->MajorSubsystemVersion); fprintf (file, "MinorSubsystemVersion\t%d\n", i->MinorSubsystemVersion); - fprintf (file, "Win32Version\t\t%08lx\n", i->Reserved1); - fprintf (file, "SizeOfImage\t\t%08lx\n", i->SizeOfImage); - fprintf (file, "SizeOfHeaders\t\t%08lx\n", i->SizeOfHeaders); - fprintf (file, "CheckSum\t\t%08lx\n", i->CheckSum); + fprintf (file, "Win32Version\t\t%08lx\n", (unsigned long) i->Reserved1); + fprintf (file, "SizeOfImage\t\t%08lx\n", (unsigned long) i->SizeOfImage); + fprintf (file, "SizeOfHeaders\t\t%08lx\n", (unsigned long) i->SizeOfHeaders); + fprintf (file, "CheckSum\t\t%08lx\n", (unsigned long) i->CheckSum); switch (i->Subsystem) { @@ -2149,15 +2149,16 @@ _bfd_XX_print_private_bfd_data_common (bfd * abfd, void * vfile) fprintf_vma (file, i->SizeOfHeapReserve); fprintf (file, "\nSizeOfHeapCommit\t"); fprintf_vma (file, i->SizeOfHeapCommit); - fprintf (file, "\nLoaderFlags\t\t%08lx\n", i->LoaderFlags); - fprintf (file, "NumberOfRvaAndSizes\t%08lx\n", i->NumberOfRvaAndSizes); + fprintf (file, "\nLoaderFlags\t\t%08lx\n", (unsigned long) i->LoaderFlags); + fprintf (file, "NumberOfRvaAndSizes\t%08lx\n", + (unsigned long) i->NumberOfRvaAndSizes); fprintf (file, "\nThe Data Directory\n"); for (j = 0; j < IMAGE_NUMBEROF_DIRECTORY_ENTRIES; j++) { fprintf (file, "Entry %1x ", j); fprintf_vma (file, i->DataDirectory[j].VirtualAddress); - fprintf (file, " %08lx ", i->DataDirectory[j].Size); + fprintf (file, " %08lx ", (unsigned long) i->DataDirectory[j].Size); fprintf (file, "%s\n", dir_names[j]); } @@ -1,5 +1,5 @@ /* PEF support for BFD. - Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -186,7 +186,7 @@ bfd_pef_parse_traceback_table (bfd *abfd, offset += 4; if (file != NULL) - fprintf (file, " [length = 0x%lx]", (long) offset); + fprintf (file, " [length = 0x%lx]", (unsigned long) offset); return offset; } diff --git a/bfd/ppcboot.c b/bfd/ppcboot.c index b4b6e7a..d51280c 100644 --- a/bfd/ppcboot.c +++ b/bfd/ppcboot.c @@ -1,6 +1,6 @@ /* BFD back-end for PPCbug boot records. Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, - 2007 Free Software Foundation, Inc. + 2007, 2008 Free Software Foundation, Inc. Written by Michael Meissner, Cygnus Support, <meissner@cygnus.com> This file is part of BFD, the Binary File Descriptor library. @@ -412,8 +412,10 @@ ppcboot_bfd_print_private_bfd_data (abfd, farg) int i; fprintf (f, _("\nppcboot header:\n")); - fprintf (f, _("Entry offset = 0x%.8lx (%ld)\n"), entry_offset, entry_offset); - fprintf (f, _("Length = 0x%.8lx (%ld)\n"), length, length); + fprintf (f, _("Entry offset = 0x%.8lx (%ld)\n"), + (unsigned long) entry_offset, entry_offset); + fprintf (f, _("Length = 0x%.8lx (%ld)\n"), + (unsigned long) length, length); if (tdata->header.flags) fprintf (f, _("Flag field = 0x%.2x\n"), tdata->header.flags); @@ -453,8 +455,10 @@ ppcboot_bfd_print_private_bfd_data (abfd, farg) tdata->header.partition[i].partition_end.sector, tdata->header.partition[i].partition_end.cylinder); - fprintf (f, _("Partition[%d] sector = 0x%.8lx (%ld)\n"), i, sector_begin, sector_begin); - fprintf (f, _("Partition[%d] length = 0x%.8lx (%ld)\n"), i, sector_length, sector_length); + fprintf (f, _("Partition[%d] sector = 0x%.8lx (%ld)\n"), + i, (unsigned long) sector_begin, sector_begin); + fprintf (f, _("Partition[%d] length = 0x%.8lx (%ld)\n"), + i, (unsigned long) sector_length, sector_length); } fprintf (f, "\n"); diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 87f7ce8..9d0ffdb 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -875,7 +875,7 @@ hash_string (const char *ptr) char * _bfd_vms_length_hash_symbol (bfd * abfd, const char *in, int maxlen) { - long int result; + unsigned long result; int in_len; char *new_name; const char *old_name; @@ -1,5 +1,5 @@ /* xSYM symbol-file support for BFD. - Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -1640,7 +1640,7 @@ bfd_sym_print_type_information (bfd *abfd, bfd_sym_symbol_name (abfd, tinfo.nte_index)[0], &bfd_sym_symbol_name (abfd, tinfo.nte_index)[1]); } - fprintf (f, " (TTE %lu)", value); + fprintf (f, " (TTE %lu)", (unsigned long) value); break; } @@ -1701,13 +1701,13 @@ bfd_sym_print_type_information (bfd *abfd, fprintf (f, "union (0x%x) of ", type); bfd_sym_fetch_long (buf, len, offset, &offset, &nrec); - fprintf (f, "%lu elements: ", nrec); + fprintf (f, "%lu elements: ", (unsigned long) nrec); for (i = 0; i < nrec; i++) { bfd_sym_fetch_long (buf, len, offset, &offset, &eloff); fprintf (f, "\n "); - fprintf (f, "offset %lu: ", eloff); + fprintf (f, "offset %lu: ", (unsigned long) eloff); bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); } break; @@ -1735,7 +1735,7 @@ bfd_sym_print_type_information (bfd *abfd, bfd_sym_symbol_name (abfd, value)[0], &bfd_sym_symbol_name (abfd, value)[1]); - fprintf (f, " (NTE %lu) with type ", value); + fprintf (f, " (NTE %lu) with type ", (unsigned long) value); bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); break; } |