BFD error/warning messages

Alan Modra amodra@gmail.com
Thu Feb 22 23:38:00 GMT 2018


I figure that since we've just generated a lot of churn for the
translation project by replacing %A and %B in format strings with %pA
and %pB, now would be a good time to make our error messages comply
with the GNU coding standard.
https://www.gnu.org/prep/standards/standards.html#Errors

This first series attacks BFD.  I'll probably also look at ld
messages.

ARM and MIPS patches are split out due to those being the targets
needing the most changes.  ARM in particular has a lot of multi-line
message changes.

Alan Modra (8):
  ppc error/warning messages
  unrecognized/unsupported reloc message
  ELF linker messages
  mips messages
  arm and aarch64 messages
  AOUT/COFF/PE messages
  bfd messages
  assorted target messages

 bfd/ChangeLog                                      |  71 +++++++
 bfd/aout-adobe.c                                   |   2 +-
 bfd/aout-cris.c                                    |   6 +-
 bfd/aoutx.h                                        |   8 +-
 bfd/archive.c                                      |   2 +-
 bfd/bfd.c                                          |  42 ++--
 bfd/coff-alpha.c                                   |  26 ++-
 bfd/coff-arm.c                                     |  21 +-
 bfd/coff-i860.c                                    |   4 +-
 bfd/coff-m68k.c                                    |   2 +-
 bfd/coff-mcore.c                                   |   4 +-
 bfd/coff-ppc.c                                     |   8 +-
 bfd/coff-rs6000.c                                  |   2 +-
 bfd/coff-sh.c                                      |   5 +-
 bfd/coff-tic4x.c                                   |  13 +-
 bfd/coff-tic54x.c                                  |  13 +-
 bfd/coff-tic80.c                                   |   2 +-
 bfd/coff-w65.c                                     |   2 +-
 bfd/coffcode.h                                     |  14 +-
 bfd/coffgen.c                                      |   4 +-
 bfd/cofflink.c                                     |   4 +-
 bfd/dwarf2.c                                       |  62 +++---
 bfd/ecoff.c                                        |   2 +-
 bfd/elf-attrs.c                                    |   4 +-
 bfd/elf-bfd.h                                      |   2 +-
 bfd/elf-eh-frame.c                                 |  29 ++-
 bfd/elf-m10300.c                                   |   6 +-
 bfd/elf-s390-common.c                              |   6 +-
 bfd/elf.c                                          |  33 ++--
 bfd/elf32-arc.c                                    |  42 ++--
 bfd/elf32-arm.c                                    | 213 +++++++++++----------
 bfd/elf32-avr.c                                    |   5 +-
 bfd/elf32-bfin.c                                   |   4 +-
 bfd/elf32-cr16.c                                   |  11 +-
 bfd/elf32-cr16c.c                                  |   3 +-
 bfd/elf32-cris.c                                   |  17 +-
 bfd/elf32-crx.c                                    |   4 +-
 bfd/elf32-d10v.c                                   |   5 +-
 bfd/elf32-d30v.c                                   |  10 +-
 bfd/elf32-dlx.c                                    |  13 +-
 bfd/elf32-epiphany.c                               |   5 +-
 bfd/elf32-fr30.c                                   |   3 +-
 bfd/elf32-frv.c                                    |  22 ++-
 bfd/elf32-gen.c                                    |   2 +-
 bfd/elf32-i370.c                                   |  34 +---
 bfd/elf32-i386.c                                   |   4 +-
 bfd/elf32-i960.c                                   |   3 +-
 bfd/elf32-ip2k.c                                   |   5 +-
 bfd/elf32-iq2000.c                                 |   3 +-
 bfd/elf32-lm32.c                                   |   9 +-
 bfd/elf32-m32c.c                                   |  10 +-
 bfd/elf32-m32r.c                                   |  10 +-
 bfd/elf32-m68hc11.c                                |   5 +-
 bfd/elf32-m68hc12.c                                |   5 +-
 bfd/elf32-m68hc1x.c                                |   2 +-
 bfd/elf32-m68k.c                                   |  10 +-
 bfd/elf32-mcore.c                                  |  16 +-
 bfd/elf32-mep.c                                    |  10 +-
 bfd/elf32-metag.c                                  |   5 +-
 bfd/elf32-microblaze.c                             |  10 +-
 bfd/elf32-mips.c                                   |  10 +-
 bfd/elf32-moxie.c                                  |   5 +-
 bfd/elf32-msp430.c                                 |  14 +-
 bfd/elf32-mt.c                                     |  10 +-
 bfd/elf32-nds32.c                                  |  56 +++---
 bfd/elf32-nios2.c                                  |   8 +-
 bfd/elf32-or1k.c                                   |  11 +-
 bfd/elf32-pj.c                                     |   4 +-
 bfd/elf32-ppc.c                                    |  82 ++++----
 bfd/elf32-rl78.c                                   |  10 +-
 bfd/elf32-rx.c                                     |  33 ++--
 bfd/elf32-s390.c                                   |   4 +-
 bfd/elf32-score.c                                  |   4 +-
 bfd/elf32-score7.c                                 |   2 +-
 bfd/elf32-sh-symbian.c                             |   4 +-
 bfd/elf32-sh.c                                     |   4 +-
 bfd/elf32-spu.c                                    |  14 +-
 bfd/elf32-tic6x.c                                  |   2 +-
 bfd/elf32-v850.c                                   |  60 +++---
 bfd/elf32-vax.c                                    |   2 +-
 bfd/elf32-visium.c                                 |   5 +-
 bfd/elf32-wasm32.c                                 |   6 +-
 bfd/elf32-xgate.c                                  |   5 +-
 bfd/elf32-xtensa.c                                 |  11 +-
 bfd/elf64-alpha.c                                  |  12 +-
 bfd/elf64-ia64-vms.c                               |  19 +-
 bfd/elf64-mips.c                                   |   9 +-
 bfd/elf64-mmix.c                                   |  31 +--
 bfd/elf64-ppc.c                                    |  60 +++---
 bfd/elf64-s390.c                                   |   4 +-
 bfd/elf64-sh64.c                                   |   2 +-
 bfd/elf64-sparc.c                                  |  12 +-
 bfd/elf64-x86-64.c                                 |   4 +-
 bfd/elflink.c                                      |  46 ++---
 bfd/elfn32-mips.c                                  |  13 +-
 bfd/elfnn-aarch64.c                                |  42 ++--
 bfd/elfnn-ia64.c                                   |  10 +-
 bfd/elfnn-riscv.c                                  |  16 +-
 bfd/elfxx-mips.c                                   |  60 +++---
 bfd/elfxx-riscv.c                                  |   5 +-
 bfd/elfxx-riscv.h                                  |   2 +-
 bfd/elfxx-sparc.c                                  |   9 +-
 bfd/elfxx-sparc.h                                  |   2 +-
 bfd/elfxx-tilegx.c                                 |   2 +-
 bfd/i386linux.c                                    |  10 +-
 bfd/linker.c                                       |   2 +-
 bfd/m68klinux.c                                    |  10 +-
 bfd/mmo.c                                          |   6 +-
 bfd/osf-core.c                                     |   2 +-
 bfd/pe-mips.c                                      |   8 +-
 bfd/peXXigen.c                                     |  12 +-
 bfd/peicode.h                                      |  17 +-
 bfd/reloc.c                                        |   6 +-
 bfd/sparclinux.c                                   |  10 +-
 bfd/srec.c                                         |   8 +-
 bfd/stabs.c                                        |   2 +-
 bfd/syms.c                                         |   2 +-
 bfd/vms-alpha.c                                    |  79 ++++----
 binutils/ChangeLog                                 |  10 +
 .../testsuite/binutils-all/mips/mips-reginfo-n32.d |   4 +-
 .../testsuite/binutils-all/mips/mips-reginfo.d     |   4 +-
 gas/ChangeLog                                      |   8 +
 gas/testsuite/gas/mips/reginfo-2.l                 |   4 +-
 ld/ChangeLog                                       | 167 ++++++++++++++++
 ld/testsuite/ld-aarch64/reloc-overflow-bad.d       |   2 +-
 ld/testsuite/ld-arm/attr-merge-9.out               |   2 +-
 ld/testsuite/ld-arm/attr-merge-arch-2.d            |   2 +-
 ld/testsuite/ld-arm/attr-merge-incompatible.d      |   2 +-
 ld/testsuite/ld-arm/attr-merge-unknown-1.d         |   2 +-
 ld/testsuite/ld-arm/attr-merge-unknown-2.d         |   2 +-
 ld/testsuite/ld-arm/attr-merge-unknown-2r.d        |   2 +-
 ld/testsuite/ld-arm/attr-merge-unknown-3.d         |   2 +-
 ld/testsuite/ld-arm/cmse-implib-errors.out         |  10 +-
 .../ld-arm/cmse-new-earlier-later-implib.out       |   6 +-
 ld/testsuite/ld-arm/cmse-new-implib-no-output.out  |   2 +-
 .../ld-arm/cmse-new-implib-not-sg-in-implib.out    |   4 +-
 ld/testsuite/ld-arm/cmse-new-implib.out            |   2 +-
 ld/testsuite/ld-arm/cmse-new-wrong-implib.out      |   6 +-
 .../ld-arm/cmse-veneers-no-gnu_sgstubs.out         |   4 +-
 .../ld-arm/cmse-veneers-wrong-entryfct.out         |  29 ++-
 ld/testsuite/ld-arm/group-relocs-alu-bad-2.d       |   2 +-
 ld/testsuite/ld-arm/group-relocs-alu-bad.d         |   2 +-
 ld/testsuite/ld-arm/group-relocs-ldc-bad-2.d       |   2 +-
 ld/testsuite/ld-arm/group-relocs-ldc-bad.d         |   2 +-
 ld/testsuite/ld-arm/group-relocs-ldr-bad-2.d       |   2 +-
 ld/testsuite/ld-arm/group-relocs-ldr-bad.d         |   2 +-
 ld/testsuite/ld-arm/group-relocs-ldrs-bad-2.d      |   2 +-
 ld/testsuite/ld-arm/group-relocs-ldrs-bad.d        |   2 +-
 ld/testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d |   2 +-
 ld/testsuite/ld-cris/badgotr1.d                    |   2 +-
 ld/testsuite/ld-cris/pcrelcp-1.d                   |   3 +-
 ld/testsuite/ld-cris/tls-err-24.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-25.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-26.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-27.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-28.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-40.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-44.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-48.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-52.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-53.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-55.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-56.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-62.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-65.d                  |   2 +-
 ld/testsuite/ld-cris/tls-err-77.d                  |   2 +-
 ld/testsuite/ld-elf/empty-implib.out               |   2 +-
 ld/testsuite/ld-elf/indirect.exp                   |   6 +-
 ld/testsuite/ld-elf/pr22649-2ab-mips.msg           |   4 +-
 ld/testsuite/ld-elf/pr22649-2cd-mips.msg           |   2 +-
 ld/testsuite/ld-elf/pr22649.msg                    |   2 +-
 ld/testsuite/ld-elf/tls_common.exp                 |   4 +-
 ld/testsuite/ld-elfcomm/elfcomm.exp                |   8 +-
 ld/testsuite/ld-i386/warn1.d                       |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-12.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-13.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-14.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-16.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-17.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-18.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-19.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-21.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-23.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-24.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-25.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-26.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-27.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-28.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-29.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-31.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-32.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-34.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-35.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-36.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-37.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-38.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-39.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-41.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-42.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-43.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-45.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-46.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-47.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-48.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-49.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-52.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-53.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-54.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-58.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-59.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-61.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-62.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-63.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-64.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-68.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-69.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-71.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-72.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-73.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-74.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-78.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-79.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-81.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-4-89.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-8-12.d           |   2 +-
 ld/testsuite/ld-mips-elf/attr-gnu-8-21.d           |   2 +-
 .../ld-mips-elf/bal-jalx-pic-micromips-n32.d       |   2 +-
 .../ld-mips-elf/bal-jalx-pic-micromips-n64.d       |   2 +-
 ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips.d  |   2 +-
 ld/testsuite/ld-mips-elf/bal-jalx-pic-n32.d        |   2 +-
 ld/testsuite/ld-mips-elf/bal-jalx-pic-n64.d        |   2 +-
 ld/testsuite/ld-mips-elf/bal-jalx-pic.d            |   2 +-
 ld/testsuite/ld-mips-elf/mode-change-error-1.d     |   4 +-
 ld/testsuite/ld-mips-elf/unaligned-branch-2.d      |  88 ++++-----
 .../ld-mips-elf/unaligned-branch-ignore-2.d        |  60 +++---
 .../unaligned-branch-ignore-micromips.d            |  80 ++++----
 .../ld-mips-elf/unaligned-branch-ignore-mips16.d   |  32 ++--
 .../ld-mips-elf/unaligned-branch-ignore-r6-1.d     |  68 +++----
 .../ld-mips-elf/unaligned-branch-micromips.d       | 152 +++++++--------
 ld/testsuite/ld-mips-elf/unaligned-branch-mips16.d |  68 +++----
 ld/testsuite/ld-mips-elf/unaligned-branch-r6-1.d   | 110 +++++------
 ld/testsuite/ld-mips-elf/unaligned-branch-r6-2.d   |  60 +++---
 ld/testsuite/ld-mips-elf/unaligned-branch.d        |  18 +-
 ld/testsuite/ld-mips-elf/unaligned-jalx-1.d        |   2 +-
 ld/testsuite/ld-mips-elf/unaligned-jalx-3.d        |   2 +-
 ld/testsuite/ld-mips-elf/unaligned-jalx-addend-1.d |  24 +--
 ld/testsuite/ld-mips-elf/unaligned-jalx-addend-3.d |  24 +--
 .../unaligned-jalx-addend-micromips-1.d            |  24 +--
 .../ld-mips-elf/unaligned-jalx-addend-mips16-1.d   |  24 +--
 .../ld-mips-elf/unaligned-jalx-micromips-1.d       |   2 +-
 ld/testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d |   2 +-
 .../ld-mips-elf/unaligned-jump-micromips.d         | 114 +++++------
 ld/testsuite/ld-mips-elf/unaligned-jump-mips16.d   |  54 +++---
 ld/testsuite/ld-mips-elf/unaligned-jump.d          |  92 ++++-----
 ld/testsuite/ld-mmix/start-2.d                     |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-12-21.d           |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-4-12.d            |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-4-13.d            |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-4-21.d            |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-4-23.d            |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-4-31.d            |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-4-32.d            |   2 +-
 ld/testsuite/ld-powerpc/attr-gnu-8-23.d            |   2 +-
 .../ld-tic6x/attr-compatibility-gnu-other.d        |   2 +-
 .../ld-tic6x/attr-compatibility-other-gnu.d        |   2 +-
 .../ld-tic6x/attr-compatibility-other-other.d      |   2 +-
 266 files changed, 1842 insertions(+), 1560 deletions(-)

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list