diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 10 | ||||
-rw-r--r-- | bfd/elf32-arm.c | 2 | ||||
-rw-r--r-- | bfd/elf32-hppa.c | 2 | ||||
-rw-r--r-- | bfd/elf32-lm32.c | 2 | ||||
-rw-r--r-- | bfd/elf32-m32r.c | 2 | ||||
-rw-r--r-- | bfd/elf32-metag.c | 2 | ||||
-rw-r--r-- | bfd/elf32-nds32.c | 4 | ||||
-rw-r--r-- | bfd/elf32-or1k.c | 2 | ||||
-rw-r--r-- | bfd/elf32-ppc.c | 2 | ||||
-rw-r--r-- | bfd/elf32-s390.c | 2 | ||||
-rw-r--r-- | bfd/elf32-sh.c | 2 | ||||
-rw-r--r-- | bfd/elf32-tic6x.c | 2 | ||||
-rw-r--r-- | bfd/elf32-tilepro.c | 2 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 30 | ||||
-rw-r--r-- | bfd/elf64-s390.c | 2 | ||||
-rw-r--r-- | bfd/elflink.c | 2 | ||||
-rw-r--r-- | bfd/elfnn-aarch64.c | 2 | ||||
-rw-r--r-- | bfd/elfnn-riscv.c | 2 | ||||
-rw-r--r-- | bfd/elfxx-sparc.c | 2 | ||||
-rw-r--r-- | bfd/elfxx-tilegx.c | 2 | ||||
-rw-r--r-- | bfd/elfxx-x86.c | 2 | ||||
-rw-r--r-- | bfd/reloc.c | 6 |
22 files changed, 48 insertions, 38 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7275105..2a6eeb6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,15 @@ 2018-02-19 Alan Modra <amodra@gmail.com> + * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c, + * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c, + * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c, + * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c, + * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, + * reloc.c: Replace use of %R and %T in format strings passed to + einfo and friends by %pR and %pT. + +2018-02-19 Alan Modra <amodra@gmail.com> + * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place of %A and %B. * aout-adobe.c: Update all messages using %A and %B. diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index badf82e..6109dab 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -15633,7 +15633,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index 84394e5..f4f1297 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -2079,7 +2079,7 @@ maybe_set_textrel (struct elf_link_hash_entry *eh, void *inf) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, eh->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-lm32.c b/bfd/elf32-lm32.c index 192c712..6269775 100644 --- a/bfd/elf32-lm32.c +++ b/bfd/elf32-lm32.c @@ -1986,7 +1986,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c index da540b9..985047e 100644 --- a/bfd/elf32-m32r.c +++ b/bfd/elf32-m32r.c @@ -2094,7 +2094,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-metag.c b/bfd/elf32-metag.c index 9de08b3..dc867ce 100644 --- a/bfd/elf32-metag.c +++ b/bfd/elf32-metag.c @@ -2789,7 +2789,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index 3ca6f51..70cf1dc 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -3841,7 +3841,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ @@ -12827,7 +12827,7 @@ nds32_elf_get_relocated_section_contents (bfd *abfd, message instead. */ link_info->callbacks->einfo /* xgettext:c-format */ - (_("%X%P: %pB(%pA): relocation \"%R\" goes out of range\n"), + (_("%X%P: %pB(%pA): relocation \"%pR\" goes out of range\n"), abfd, input_section, * parent); goto error_return; diff --git a/bfd/elf32-or1k.c b/bfd/elf32-or1k.c index 67e5769..e630a45 100644 --- a/bfd/elf32-or1k.c +++ b/bfd/elf32-or1k.c @@ -2278,7 +2278,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 1cacb79..c9db21c 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -6163,7 +6163,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c index f82b227..3ddbd469 100644 --- a/bfd/elf32-s390.c +++ b/bfd/elf32-s390.c @@ -1848,7 +1848,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 5c80ab4..7c8ec6c 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -3286,7 +3286,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c index 04be4b3..24920b0 100644 --- a/bfd/elf32-tic6x.c +++ b/bfd/elf32-tic6x.c @@ -3202,7 +3202,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c index 1b75262..442e582 100644 --- a/bfd/elf32-tilepro.c +++ b/bfd/elf32-tilepro.c @@ -2234,7 +2234,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index b6c6105..f8b6629 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -7262,7 +7262,7 @@ ppc64_elf_adjust_dynamic_symbol (struct bfd_link_info *info, sections. Allow them to proceed, but warn that this might break at runtime. */ info->callbacks->einfo - (_("%P: copy reloc against `%T' requires lazy plt linking; " + (_("%P: copy reloc against `%pT' requires lazy plt linking; " "avoid setting LD_BIND_NOW=1 or upgrade gcc\n"), h->root.root.string); } @@ -9933,7 +9933,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *inf) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ @@ -10780,7 +10780,7 @@ get_r2off (struct bfd_link_info *info, if (strcmp (opd->name, ".opd") != 0 || opd->reloc_count != 0) { - info->callbacks->einfo (_("%P: cannot find opd entry toc for `%T'\n"), + info->callbacks->einfo (_("%P: cannot find opd entry toc for `%pT'\n"), stub_entry->h->elf.root.root.string); bfd_set_error (bfd_error_bad_value); return (bfd_vma) -1; @@ -10991,7 +10991,7 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg) if (off + 0x80008000 > 0xffffffff || (off & 7) != 0) { info->callbacks->einfo - (_("%P: linkage table error against `%T'\n"), + (_("%P: linkage table error against `%pT'\n"), stub_entry->root.string); bfd_set_error (bfd_error_bad_value); htab->stub_error = TRUE; @@ -11137,7 +11137,7 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg) { info->callbacks->einfo /* xgettext:c-format */ - (_("%P: linkage table error against `%T'\n"), + (_("%P: linkage table error against `%pT'\n"), stub_entry->h != NULL ? stub_entry->h->elf.root.root.string : "<local sym>"); @@ -13006,7 +13006,7 @@ build_global_entry_stubs (struct elf_link_hash_entry *h, void *inf) if (off + 0x80008000 > 0xffffffff || (off & 3) != 0) { info->callbacks->einfo - (_("%P: linkage table error against `%T'\n"), + (_("%P: linkage table error against `%pT'\n"), h->root.root.string); bfd_set_error (bfd_error_bad_value); htab->stub_error = TRUE; @@ -13608,9 +13608,9 @@ ppc64_elf_relocate_section (bfd *output_bfd, info->callbacks->einfo (!IS_PPC64_TLS_RELOC (r_type) /* xgettext:c-format */ - ? _("%H: %s used with TLS symbol `%T'\n") + ? _("%H: %s used with TLS symbol `%pT'\n") /* xgettext:c-format */ - : _("%H: %s used with non-TLS symbol `%T'\n"), + : _("%H: %s used with non-TLS symbol `%pT'\n"), input_bfd, input_section, rel->r_offset, ppc64_elf_howto_table[r_type]->name, sym_name); @@ -14220,13 +14220,13 @@ ppc64_elf_relocate_section (bfd *output_bfd, || stub_entry->stub_type == ppc_stub_plt_call_r2save) info->callbacks->einfo /* xgettext:c-format */ - (_("%H: call to `%T' lacks nop, can't restore toc; " + (_("%H: call to `%pT' lacks nop, can't restore toc; " "recompile with -fPIC\n"), input_bfd, input_section, rel->r_offset, sym_name); else info->callbacks->einfo /* xgettext:c-format */ - (_("%H: call to `%T' lacks nop, can't restore toc; " + (_("%H: call to `%pT' lacks nop, can't restore toc; " "(-mcmodel=small toc adjust stub)\n"), input_bfd, input_section, rel->r_offset, sym_name); @@ -14354,7 +14354,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, default: info->callbacks->einfo /* xgettext:c-format */ - (_("%P: %pB: unknown relocation type %d for `%T'\n"), + (_("%P: %pB: unknown relocation type %d for `%pT'\n"), input_bfd, (int) r_type, sym_name); bfd_set_error (bfd_error_bad_value); @@ -14904,7 +14904,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, info->callbacks->einfo /* xgettext:c-format */ (_("%H: %s for indirect " - "function `%T' unsupported\n"), + "function `%pT' unsupported\n"), input_bfd, input_section, rel->r_offset, ppc64_elf_howto_table[r_type]->name, sym_name); @@ -15015,7 +15015,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, info->callbacks->einfo /* xgettext:c-format */ - (_("%P: %pB: %s is not supported for `%T'\n"), + (_("%P: %pB: %s is not supported for `%pT'\n"), input_bfd, ppc64_elf_howto_table[r_type]->name, sym_name); @@ -15225,7 +15225,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, { info->callbacks->einfo /* xgettext:c-format */ - (_("%H: unresolvable %s against `%T'\n"), + (_("%H: unresolvable %s against `%pT'\n"), input_bfd, input_section, rel->r_offset, howto->name, h->elf.root.root.string); @@ -15322,7 +15322,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, { info->callbacks->einfo /* xgettext:c-format */ - (_("%H: %s against `%T': error %d\n"), + (_("%H: %s against `%pT': error %d\n"), input_bfd, input_section, rel->r_offset, reloc_name, sym_name, (int) r); ret = FALSE; diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 22e81d4..9a3ee44 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -1782,7 +1782,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elflink.c b/bfd/elflink.c index bcc29e9..5d95b2e 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -3023,7 +3023,7 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info, || (info->extern_protected_data < 0 && !get_elf_backend_data (dynbss->owner)->extern_protected_data))) info->callbacks->einfo - (_("%P: copy reloc against protected `%T' is dangerous\n"), + (_("%P: copy reloc against protected `%pT' is dangerous\n"), h->root.root.string); return TRUE; diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 62d4181..70fbe93 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -8440,7 +8440,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c index 711fc1a..efbd882 100644 --- a/bfd/elfnn-riscv.c +++ b/bfd/elfnn-riscv.c @@ -1109,7 +1109,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index 363589d..143e9a3 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -2415,7 +2415,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elfxx-tilegx.c b/bfd/elfxx-tilegx.c index 9295ccd..ab30fdd 100644 --- a/bfd/elfxx-tilegx.c +++ b/bfd/elfxx-tilegx.c @@ -2476,7 +2476,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p) info->flags |= DF_TEXTREL; info->callbacks->minfo - (_("%pB: dynamic relocation against `%T' in read-only section `%pA'\n"), + (_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); /* Not an error, just cut short the traversal. */ diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c index 2398553..5f55c94 100644 --- a/bfd/elfxx-x86.c +++ b/bfd/elfxx-x86.c @@ -568,7 +568,7 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *inf) info->flags |= DF_TEXTREL; /* xgettext:c-format */ - info->callbacks->minfo (_("%pB: dynamic relocation against `%T' " + info->callbacks->minfo (_("%pB: dynamic relocation against `%pT' " "in read-only section `%pA'\n"), sec->owner, h->root.root.string, sec); diff --git a/bfd/reloc.c b/bfd/reloc.c index b1e4143..a61fd9a 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -8307,7 +8307,7 @@ bfd_generic_get_relocated_section_contents (bfd *abfd, message instead. */ link_info->callbacks->einfo /* xgettext:c-format */ - (_("%X%P: %pB(%pA): relocation \"%R\" goes out of range\n"), + (_("%X%P: %pB(%pA): relocation \"%pR\" goes out of range\n"), abfd, input_section, * parent); goto error_return; @@ -8317,7 +8317,7 @@ bfd_generic_get_relocated_section_contents (bfd *abfd, Do not abort. Issue an error message instead. */ link_info->callbacks->einfo /* xgettext:c-format */ - (_("%X%P: %pB(%pA): relocation \"%R\" is not supported\n"), + (_("%X%P: %pB(%pA): relocation \"%pR\" is not supported\n"), abfd, input_section, * parent); goto error_return; @@ -8326,7 +8326,7 @@ bfd_generic_get_relocated_section_contents (bfd *abfd, Report unexpected results, without aborting. */ link_info->callbacks->einfo /* xgettext:c-format */ - (_("%X%P: %pB(%pA): relocation \"%R\" returns an unrecognized value %x\n"), + (_("%X%P: %pB(%pA): relocation \"%pR\" returns an unrecognized value %x\n"), abfd, input_section, * parent, r); break; } |