diff options
author | Alan Modra <amodra@gmail.com> | 2018-02-19 18:34:15 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-02-19 23:55:54 +1030 |
commit | 2dcf00ce6c001c42c89e6f6baace708b706994f2 (patch) | |
tree | c0500bccd3514dacca7ca0ad1e60661350ab7628 /bfd/elfxx-mips.c | |
parent | c1c8c1ef9acdeddf719f358b91590545440cea68 (diff) | |
download | gdb-2dcf00ce6c001c42c89e6f6baace708b706994f2.zip gdb-2dcf00ce6c001c42c89e6f6baace708b706994f2.tar.gz gdb-2dcf00ce6c001c42c89e6f6baace708b706994f2.tar.bz2 |
%L conversions
* bfd-in.h: Include inttypes.h or if not available define
PRId64, PRIu64 and PRIx64.
* bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
modifier to print bfd_vma.
* coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
* coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
* compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
* elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
* elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
* elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
* elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
* elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
* elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
* elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
* elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
* elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
* elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
* peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
and cast input to uint64_t, and similarly for Ld and Lu.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 3d09048..7253090 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -7107,9 +7107,10 @@ _bfd_mips_elf_section_processing (bfd *abfd, Elf_Internal_Shdr *hdr) if (hdr->sh_size != sizeof (Elf32_External_RegInfo)) { _bfd_error_handler - (_("%pB: Incorrect `.reginfo' section size; expected %Lu, got %Lu"), - abfd, (bfd_size_type) sizeof (Elf32_External_RegInfo), - hdr->sh_size); + (_("%pB: Incorrect `.reginfo' section size; " + "expected %" PRIu64 ", got %" PRIu64), + abfd, (uint64_t) sizeof (Elf32_External_RegInfo), + (uint64_t) hdr->sh_size); bfd_set_error (bfd_error_bad_value); return FALSE; } @@ -8471,8 +8472,8 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, { _bfd_error_handler /* xgettext:c-format */ - (_("%pB: GOT reloc at %#Lx not expected in executables"), - abfd, rel->r_offset); + (_("%pB: GOT reloc at %#" PRIx64 " not expected in executables"), + abfd, (uint64_t) rel->r_offset); bfd_set_error (bfd_error_bad_value); return FALSE; } @@ -8609,8 +8610,8 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, { _bfd_error_handler /* xgettext:c-format */ - (_("%pB: CALL16 reloc at %#Lx not against global symbol"), - abfd, rel->r_offset); + (_("%pB: CALL16 reloc at %#" PRIx64 " not against global symbol"), + abfd, (uint64_t) rel->r_offset); bfd_set_error (bfd_error_bad_value); return FALSE; } @@ -10153,9 +10154,9 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, _bfd_error_handler /* xgettext:c-format */ (_("%pB: Can't find matching LO16 reloc against `%s'" - " for %s at %#Lx in section `%pA'"), + " for %s at %#" PRIx64 " in section `%pA'"), input_bfd, name, - howto->name, rel->r_offset, input_section); + howto->name, (uint64_t) rel->r_offset, input_section); } } else @@ -10696,11 +10697,11 @@ _bfd_mips_elf_finish_dynamic_symbol (bfd *output_bfd, { _bfd_error_handler /* xgettext:c-format */ - (_("%pB: `%pA' offset of %Ld from `%pA' " + (_("%pB: `%pA' offset of %" PRId64 " from `%pA' " "beyond the range of ADDIUPC"), output_bfd, htab->root.sgotplt->output_section, - gotpc_offset, + (int64_t) gotpc_offset, htab->root.splt->output_section); bfd_set_error (bfd_error_no_error); return FALSE; @@ -11264,10 +11265,11 @@ mips_finish_exec_plt (bfd *output_bfd, struct bfd_link_info *info) { _bfd_error_handler /* xgettext:c-format */ - (_("%pB: `%pA' offset of %Ld from `%pA' beyond the range of ADDIUPC"), + (_("%pB: `%pA' offset of %" PRId64 " from `%pA' " + "beyond the range of ADDIUPC"), output_bfd, htab->root.sgotplt->output_section, - gotpc_offset, + (int64_t) gotpc_offset, htab->root.splt->output_section); bfd_set_error (bfd_error_no_error); return FALSE; |