diff options
author | Alan Modra <amodra@gmail.com> | 2018-02-21 13:04:48 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-02-26 09:31:52 +1030 |
commit | 90b6238f06197c2abff953ab5920ae5b6d39f97f (patch) | |
tree | b281124e1b3212ab6dcb83b14fba350c13e71f8b /ld | |
parent | 2c1c96795601a19554fa3a86700a1b9e9d57c931 (diff) | |
download | gdb-90b6238f06197c2abff953ab5920ae5b6d39f97f.zip gdb-90b6238f06197c2abff953ab5920ae5b6d39f97f.tar.gz gdb-90b6238f06197c2abff953ab5920ae5b6d39f97f.tar.bz2 |
ARM and AArch64 messages
More standarization of error/warning messages. The ARM backend has
some multi-line error messages, which don't fit particularly well with
the GNU coding standard insistence that error messages shouldn't be
capitalized or have a full-stop. I've replaced the line breaks with
semicolons.
So for instance the following
system/path/to/ld: myobject.o: invalid special symbol `foo'.
system/path/to/ld: It must be a global or weak function symbol.
becomes
system/path/to/ld: myobject.o: invalid special symbol `foo'; it must be a global or weak function symbol
bfd/
* elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
ld/
* testsuite/ld-aarch64/reloc-overflow-bad.d,
* testsuite/ld-arm/attr-merge-9.out,
* testsuite/ld-arm/attr-merge-arch-2.d,
* testsuite/ld-arm/attr-merge-unknown-1.d,
* testsuite/ld-arm/attr-merge-unknown-2.d,
* testsuite/ld-arm/attr-merge-unknown-2r.d,
* testsuite/ld-arm/attr-merge-unknown-3.d,
* testsuite/ld-arm/cmse-implib-errors.out,
* testsuite/ld-arm/cmse-new-earlier-later-implib.out,
* testsuite/ld-arm/cmse-new-implib-no-output.out,
* testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
* testsuite/ld-arm/cmse-new-implib.out,
* testsuite/ld-arm/cmse-new-wrong-implib.out,
* testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
* testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
* testsuite/ld-arm/group-relocs-alu-bad-2.d,
* testsuite/ld-arm/group-relocs-alu-bad.d,
* testsuite/ld-arm/group-relocs-ldc-bad-2.d,
* testsuite/ld-arm/group-relocs-ldc-bad.d,
* testsuite/ld-arm/group-relocs-ldr-bad-2.d,
* testsuite/ld-arm/group-relocs-ldr-bad.d,
* testsuite/ld-arm/group-relocs-ldrs-bad-2.d,
* testsuite/ld-arm/group-relocs-ldrs-bad.d,
* testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d: Update.
Diffstat (limited to 'ld')
25 files changed, 64 insertions, 46 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index d2bab36..aa0fdc9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,32 @@ 2018-02-26 Alan Modra <amodra@gmail.com> + * testsuite/ld-aarch64/reloc-overflow-bad.d, + * testsuite/ld-arm/attr-merge-9.out, + * testsuite/ld-arm/attr-merge-arch-2.d, + * testsuite/ld-arm/attr-merge-unknown-1.d, + * testsuite/ld-arm/attr-merge-unknown-2.d, + * testsuite/ld-arm/attr-merge-unknown-2r.d, + * testsuite/ld-arm/attr-merge-unknown-3.d, + * testsuite/ld-arm/cmse-implib-errors.out, + * testsuite/ld-arm/cmse-new-earlier-later-implib.out, + * testsuite/ld-arm/cmse-new-implib-no-output.out, + * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out, + * testsuite/ld-arm/cmse-new-implib.out, + * testsuite/ld-arm/cmse-new-wrong-implib.out, + * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out, + * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out, + * testsuite/ld-arm/group-relocs-alu-bad-2.d, + * testsuite/ld-arm/group-relocs-alu-bad.d, + * testsuite/ld-arm/group-relocs-ldc-bad-2.d, + * testsuite/ld-arm/group-relocs-ldc-bad.d, + * testsuite/ld-arm/group-relocs-ldr-bad-2.d, + * testsuite/ld-arm/group-relocs-ldr-bad.d, + * testsuite/ld-arm/group-relocs-ldrs-bad-2.d, + * testsuite/ld-arm/group-relocs-ldrs-bad.d, + * testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d: Update. + +2018-02-26 Alan Modra <amodra@gmail.com> + * testsuite/ld-mips-elf/attr-gnu-4-12.d, * testsuite/ld-mips-elf/attr-gnu-4-13.d, * testsuite/ld-mips-elf/attr-gnu-4-14.d, diff --git a/ld/testsuite/ld-aarch64/reloc-overflow-bad.d b/ld/testsuite/ld-aarch64/reloc-overflow-bad.d index 39f7e31..cb9ead0 100644 --- a/ld/testsuite/ld-aarch64/reloc-overflow-bad.d +++ b/ld/testsuite/ld-aarch64/reloc-overflow-bad.d @@ -1,4 +1,4 @@ #source: reloc-overflow-1.s #source: reloc-overflow-2.s #ld: -e0 -#error: .*One possible cause.* +#error: .*one possible cause.* diff --git a/ld/testsuite/ld-arm/attr-merge-9.out b/ld/testsuite/ld-arm/attr-merge-9.out index bb09181..6c3e5f3 100644 --- a/ld/testsuite/ld-arm/attr-merge-9.out +++ b/ld/testsuite/ld-arm/attr-merge-9.out @@ -1,2 +1,2 @@ -.*: error: .*: Conflicting CPU architectures 10/16 +.*: error: .*: conflicting CPU architectures 10/16 .*: failed to merge target specific data of file tmpdir/attr-merge-9b.o diff --git a/ld/testsuite/ld-arm/attr-merge-arch-2.d b/ld/testsuite/ld-arm/attr-merge-arch-2.d index 0e98edb..f7de02c 100644 --- a/ld/testsuite/ld-arm/attr-merge-arch-2.d +++ b/ld/testsuite/ld-arm/attr-merge-arch-2.d @@ -2,4 +2,4 @@ #source: attr-merge-arch-2b.s #as: #ld: -e main -#error: Conflicting CPU architectures 13/0 +#error: conflicting CPU architectures 13/0 diff --git a/ld/testsuite/ld-arm/attr-merge-unknown-1.d b/ld/testsuite/ld-arm/attr-merge-unknown-1.d index 38acff9..00e69ba 100644 --- a/ld/testsuite/ld-arm/attr-merge-unknown-1.d +++ b/ld/testsuite/ld-arm/attr-merge-unknown-1.d @@ -2,4 +2,4 @@ #source: blank.s #as: #ld: -#error: Unknown mandatory EABI object attribute 40 +#error: unknown mandatory EABI object attribute 40 diff --git a/ld/testsuite/ld-arm/attr-merge-unknown-2.d b/ld/testsuite/ld-arm/attr-merge-unknown-2.d index bf44f43..45bb023 100644 --- a/ld/testsuite/ld-arm/attr-merge-unknown-2.d +++ b/ld/testsuite/ld-arm/attr-merge-unknown-2.d @@ -2,7 +2,7 @@ #source: blank.s #as: #ld: -#warning: Unknown EABI object attribute 82 +#warning: unknown EABI object attribute 82 #readelf: -A # This test is only valid on ELF based ports. # not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* diff --git a/ld/testsuite/ld-arm/attr-merge-unknown-2r.d b/ld/testsuite/ld-arm/attr-merge-unknown-2r.d index 6d523fb..cfbc5db 100644 --- a/ld/testsuite/ld-arm/attr-merge-unknown-2r.d +++ b/ld/testsuite/ld-arm/attr-merge-unknown-2r.d @@ -2,7 +2,7 @@ #source: attr-merge-unknown-2.s #as: #ld: -#warning: Unknown EABI object attribute 82 +#warning: unknown EABI object attribute 82 #readelf: -A # This test is only valid on ELF based ports. # not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* diff --git a/ld/testsuite/ld-arm/attr-merge-unknown-3.d b/ld/testsuite/ld-arm/attr-merge-unknown-3.d index b02ba6d..ca2016c 100644 --- a/ld/testsuite/ld-arm/attr-merge-unknown-3.d +++ b/ld/testsuite/ld-arm/attr-merge-unknown-3.d @@ -2,7 +2,7 @@ #source: attr-merge-unknown-2.s #as: #ld: -#warning: Unknown EABI object attribute 82 +#warning: unknown EABI object attribute 82 #readelf: -A # This test is only valid on ELF based ports. # not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* diff --git a/ld/testsuite/ld-arm/cmse-implib-errors.out b/ld/testsuite/ld-arm/cmse-implib-errors.out index 0026f6b..6adb130 100644 --- a/ld/testsuite/ld-arm/cmse-implib-errors.out +++ b/ld/testsuite/ld-arm/cmse-implib-errors.out @@ -1,7 +1,5 @@ -.*: .*: absent standard symbol `not_exported_fct2'. -.*: .*: invalid special symbol `__acle_se_not_exported_pseudoentry_var'. -.*: It must be a global or weak function symbol. -.*: .*: invalid standard symbol `not_exported_pseudoentry_var'. -.*: It must be a global or weak function symbol. +.*: .*: absent standard symbol `not_exported_fct2' +.*: .*: invalid special symbol `__acle_se_not_exported_pseudoentry_var'; it must be a global or weak function symbol +.*: .*: invalid standard symbol `not_exported_pseudoentry_var'; it must be a global or weak function symbol .* cannot size stub section: Invalid operation #... diff --git a/ld/testsuite/ld-arm/cmse-new-earlier-later-implib.out b/ld/testsuite/ld-arm/cmse-new-earlier-later-implib.out index b49ad0a..3e4c17e 100644 --- a/ld/testsuite/ld-arm/cmse-new-earlier-later-implib.out +++ b/ld/testsuite/ld-arm/cmse-new-earlier-later-implib.out @@ -1,3 +1,3 @@ -.*: Entry function `exported_entry_veneer3' disappeared from secure code. -.*: Start address of `.gnu.sgstubs' is different from previous link. +.*: entry function `exported_entry_veneer3' disappeared from secure code +.*: start address of `.gnu.sgstubs' is different from previous link .*: cannot size stub section: Invalid operation diff --git a/ld/testsuite/ld-arm/cmse-new-implib-no-output.out b/ld/testsuite/ld-arm/cmse-new-implib-no-output.out index 0590b71..cb2e4df 100644 --- a/ld/testsuite/ld-arm/cmse-new-implib-no-output.out +++ b/ld/testsuite/ld-arm/cmse-new-implib-no-output.out @@ -1,4 +1,4 @@ -.*: Entry function `exported_entry_veneer3' disappeared from secure code. +.*: entry function `exported_entry_veneer3' disappeared from secure code .*: new entry function\(s\) introduced but no output import library specified: .*: exported_entry_veneer4 .*: exported_entry_veneer1 diff --git a/ld/testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out b/ld/testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out index c93c3fb..2c2658e 100644 --- a/ld/testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out +++ b/ld/testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out @@ -1,2 +1,2 @@ -.*: --in-implib only supported for Secure Gateway import libraries. +.*: --in-implib only supported for Secure Gateway import libraries .*: cannot size stub section: Invalid operation diff --git a/ld/testsuite/ld-arm/cmse-new-implib.out b/ld/testsuite/ld-arm/cmse-new-implib.out index c8af280..bc284e0 100644 --- a/ld/testsuite/ld-arm/cmse-new-implib.out +++ b/ld/testsuite/ld-arm/cmse-new-implib.out @@ -1 +1 @@ -.*: Entry function `exported_entry_veneer3' disappeared from secure code. +.*: entry function `exported_entry_veneer3' disappeared from secure code diff --git a/ld/testsuite/ld-arm/cmse-new-wrong-implib.out b/ld/testsuite/ld-arm/cmse-new-wrong-implib.out index 2afe407..037ce73 100644 --- a/ld/testsuite/ld-arm/cmse-new-wrong-implib.out +++ b/ld/testsuite/ld-arm/cmse-new-wrong-implib.out @@ -1,3 +1,3 @@ -.*: .*: visibility of symbol `exported_entry_veneer2' has changed. -.*: `exported_entry_fct2' refers to a non entry function. +.*: .*: visibility of symbol `exported_entry_veneer2' has changed +.*: `exported_entry_fct2' refers to a non entry function .*: cannot size stub section: Invalid operation diff --git a/ld/testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out b/ld/testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out index 9d1e5ba..3f151dd 100644 --- a/ld/testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out +++ b/ld/testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out @@ -1,3 +1,3 @@ -.*: No address assigned to the veneers output section .gnu.sgstubs +.*: no address assigned to the veneers output section .gnu.sgstubs .*: cannot size stub section: Invalid operation #... diff --git a/ld/testsuite/ld-arm/cmse-veneers-wrong-entryfct.out b/ld/testsuite/ld-arm/cmse-veneers-wrong-entryfct.out index fd4766a..2145d69 100644 --- a/ld/testsuite/ld-arm/cmse-veneers-wrong-entryfct.out +++ b/ld/testsuite/ld-arm/cmse-veneers-wrong-entryfct.out @@ -1,19 +1,12 @@ -.*: .*: Special symbol `__acle_se_loc_entry_veneer1' only allowed for ARMv8-M architecture or later. -.*: .*: invalid .* symbol `.*loc_entry_veneer1'. -.*: It must be a global or weak function symbol. -.*: .*: invalid special symbol `__acle_se_loc_entry_veneer2'. -.*: It must be a global or weak function symbol. -.*: .*: invalid special symbol `__acle_se_loc_entry_veneer4'. -.*: It must be a global or weak function symbol. -.*: .*: invalid standard symbol `loc_entry_veneer3'. -.*: It must be a global or weak function symbol. -.*: .*: invalid standard symbol `loc_entry_veneer5'. -.*: It must be a global or weak function symbol. -.*: .*: absent standard symbol `fake_entry_veneer1'. -.*: .*: invalid standard symbol `obj_entry_veneer1'. -.*: It must be a global or weak function symbol. -.*: .*: invalid special symbol `__acle_se_obj_entry_veneer2'. -.*: It must be a global or weak function symbol. -.*: .*: `fake_entry_veneer2' and its special symbol are in different sections. +.*: .*: special symbol `__acle_se_loc_entry_veneer1' only allowed for ARMv8-M architecture or later +.*: .*: invalid .* symbol `.*loc_entry_veneer1'; it must be a global or weak function symbol +.*: .*: invalid special symbol `__acle_se_loc_entry_veneer2'; it must be a global or weak function symbol +.*: .*: invalid special symbol `__acle_se_loc_entry_veneer4'; it must be a global or weak function symbol +.*: .*: invalid standard symbol `loc_entry_veneer3'; it must be a global or weak function symbol +.*: .*: invalid standard symbol `loc_entry_veneer5'; it must be a global or weak function symbol +.*: .*: absent standard symbol `fake_entry_veneer1' +.*: .*: invalid standard symbol `obj_entry_veneer1'; it must be a global or weak function symbol +.*: .*: invalid special symbol `__acle_se_obj_entry_veneer2'; it must be a global or weak function symbol +.*: .*: `fake_entry_veneer2' and its special symbol are in different sections .*: cannot size stub section: Invalid operation #... diff --git a/ld/testsuite/ld-arm/group-relocs-alu-bad-2.d b/ld/testsuite/ld-arm/group-relocs-alu-bad-2.d index 1f86ae4..e3f1df7 100644 --- a/ld/testsuite/ld-arm/group-relocs-alu-bad-2.d +++ b/ld/testsuite/ld-arm/group-relocs-alu-bad-2.d @@ -1,4 +1,4 @@ #name: ALU group relocations failure test #source: group-relocs-alu-bad-2.s #ld: -Ttext 0x8000 --section-start foo=0x1208000 -#error: Overflow whilst splitting 0x1234 for group relocation +#error: overflow whilst splitting 0x1234 for group relocation diff --git a/ld/testsuite/ld-arm/group-relocs-alu-bad.d b/ld/testsuite/ld-arm/group-relocs-alu-bad.d index 0346db1..eae24e4 100644 --- a/ld/testsuite/ld-arm/group-relocs-alu-bad.d +++ b/ld/testsuite/ld-arm/group-relocs-alu-bad.d @@ -1,4 +1,4 @@ #name: ALU group relocations failure test #source: group-relocs-alu-bad.s #ld: -Ttext 0x8000 --section-start foo=0x9010 -#error: Overflow whilst splitting 0x1010 for group relocation +#error: overflow whilst splitting 0x1010 for group relocation diff --git a/ld/testsuite/ld-arm/group-relocs-ldc-bad-2.d b/ld/testsuite/ld-arm/group-relocs-ldc-bad-2.d index e66b6d8..cc52ecc 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldc-bad-2.d +++ b/ld/testsuite/ld-arm/group-relocs-ldc-bad-2.d @@ -1,4 +1,4 @@ #name: LDC group relocations failure test #source: group-relocs-ldc-bad-2.s #ld: -Ttext 0x8000 --section-start foo=0x118400 -#error: Overflow whilst splitting 0x123456 for group relocation +#error: overflow whilst splitting 0x123456 for group relocation diff --git a/ld/testsuite/ld-arm/group-relocs-ldc-bad.d b/ld/testsuite/ld-arm/group-relocs-ldc-bad.d index d4bfb2d..3891281 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldc-bad.d +++ b/ld/testsuite/ld-arm/group-relocs-ldc-bad.d @@ -1,4 +1,4 @@ #name: LDC group relocations failure test #source: group-relocs-ldc-bad.s #ld: -Ttext 0x8000 --section-start foo=0x118400 -#error: Overflow whilst splitting 0x110400 for group relocation +#error: overflow whilst splitting 0x110400 for group relocation diff --git a/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.d b/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.d index 611d826..771395d 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.d +++ b/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.d @@ -1,4 +1,4 @@ #name: LDR group relocations failure test #source: group-relocs-ldr-bad-2.s #ld: -Ttext 0x8000 --section-start foo=0x8001000 -#error: .*Overflow whilst splitting 0x7ff9000 for group relocation.* +#error: .*overflow whilst splitting 0x7ff9000 for group relocation.* diff --git a/ld/testsuite/ld-arm/group-relocs-ldr-bad.d b/ld/testsuite/ld-arm/group-relocs-ldr-bad.d index 76f3df1..681f83c 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldr-bad.d +++ b/ld/testsuite/ld-arm/group-relocs-ldr-bad.d @@ -1,4 +1,4 @@ #name: LDR group relocations failure test #source: group-relocs-ldr-bad.s #ld: -Ttext 0x8000 --section-start foo=0x8001000 -#error: .*Overflow whilst splitting 0x123456 for group relocation.* +#error: .*overflow whilst splitting 0x123456 for group relocation.* diff --git a/ld/testsuite/ld-arm/group-relocs-ldrs-bad-2.d b/ld/testsuite/ld-arm/group-relocs-ldrs-bad-2.d index 9d1c900..c104ea6 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldrs-bad-2.d +++ b/ld/testsuite/ld-arm/group-relocs-ldrs-bad-2.d @@ -1,4 +1,4 @@ #name: LDRS group relocations failure test #source: group-relocs-ldrs-bad-2.s #ld: -Ttext 0x8000 --section-start foo=0x8000100 -#error: Overflow whilst splitting 0x7ff8100 for group relocation +#error: overflow whilst splitting 0x7ff8100 for group relocation diff --git a/ld/testsuite/ld-arm/group-relocs-ldrs-bad.d b/ld/testsuite/ld-arm/group-relocs-ldrs-bad.d index e5296f9..7d68cce 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldrs-bad.d +++ b/ld/testsuite/ld-arm/group-relocs-ldrs-bad.d @@ -1,4 +1,4 @@ #name: LDRS group relocations failure test #source: group-relocs-ldrs-bad.s #ld: -Ttext 0x8000 --section-start foo=0x8000100 -#error: Overflow whilst splitting 0x123456 for group relocation +#error: overflow whilst splitting 0x123456 for group relocation diff --git a/ld/testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d b/ld/testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d index a7674d5..8e785c6 100644 --- a/ld/testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d +++ b/ld/testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d @@ -3,7 +3,7 @@ #ld:-EL --fix-stm32l4xx-629360 -Ttext=0x80000 #objdump: -dr --prefix-addresses --show-raw-insn #name: STM32L4XX erratum : LDM cannot be patched when LDM is too far from veneer section -#warning: .*Cannot create STM32L4XX veneer. Jump out of range by 24 bytes. Cannot encode branch instruction.* +#warning: .*cannot create STM32L4XX veneer; jump out of range by 24 bytes; cannot encode branch instruction.* # Test the `LDM*' instructions when too far from the veneer section # They cannot, thus should not, be patched |