mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
ad43e107eb
I got an off-list request to make the AArch64 disassembler print spaces after commas in addresses. This patch does that. The same code is used to print operands in "did you mean" errors, so to keep things consistent, the patch also prints spaces between operands in those messages. opcodes/ * aarch64-opc.c (print_immediate_offset_address): Print spaces after commas in addresses. (aarch64_print_operand): Likewise. gas/ * config/tc-aarch64.c (print_operands): Print spaces between operands. * testsuite/gas/aarch64/ilp32-basic.d: Expect spaces after "," in addresses. * testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise. * testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise. * testsuite/gas/aarch64/ldst-reg-pair.d: Likewise. * testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise. * testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise. * testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise. * testsuite/gas/aarch64/reloc-insn.d: Likewise. * testsuite/gas/aarch64/sve.d: Likewise. * testsuite/gas/aarch64/symbol.d: Likewise. * testsuite/gas/aarch64/system.d: Likewise. * testsuite/gas/aarch64/tls-desc.d: Likewise. * testsuite/gas/aarch64/sve-invalid.l: Expect spaces after "," in suggested alternatives. * testsuite/gas/aarch64/verbose-error.l: Likewise. ld/ * testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after "," in addresses. * testsuite/ld-aarch64/emit-relocs-301-be.d: Likewise. * testsuite/ld-aarch64/emit-relocs-301.d: Likewise. * testsuite/ld-aarch64/emit-relocs-302-be.d: Likewise. * testsuite/ld-aarch64/emit-relocs-302.d: Likewise. * testsuite/ld-aarch64/emit-relocs-310-be.d: Likewise. * testsuite/ld-aarch64/emit-relocs-310.d: Likewise. * testsuite/ld-aarch64/emit-relocs-313.d: Likewise. * testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise. * testsuite/ld-aarch64/emit-relocs-515.d: Likewise. * testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise. * testsuite/ld-aarch64/emit-relocs-516.d: Likewise. * testsuite/ld-aarch64/emit-relocs-531.d: Likewise. * testsuite/ld-aarch64/emit-relocs-532.d: Likewise. * testsuite/ld-aarch64/emit-relocs-533.d: Likewise. * testsuite/ld-aarch64/emit-relocs-534.d: Likewise. * testsuite/ld-aarch64/emit-relocs-535.d: Likewise. * testsuite/ld-aarch64/emit-relocs-536.d: Likewise. * testsuite/ld-aarch64/emit-relocs-537.d: Likewise. * testsuite/ld-aarch64/emit-relocs-538.d: Likewise. * testsuite/ld-aarch64/erratum835769.d: Likewise. * testsuite/ld-aarch64/erratum843419.d: Likewise. * testsuite/ld-aarch64/farcall-b-plt.d: Likewise. * testsuite/ld-aarch64/farcall-bl-plt.d: Likewise. * testsuite/ld-aarch64/gc-plt-relocs.d: Likewise. * testsuite/ld-aarch64/ifunc-21.d: Likewise. * testsuite/ld-aarch64/ifunc-7c.d: Likewise. * testsuite/ld-aarch64/tls-desc-ie.d: Likewise. * testsuite/ld-aarch64/tls-large-desc-be.d: Likewise. * testsuite/ld-aarch64/tls-large-desc.d: Likewise. * testsuite/ld-aarch64/tls-large-ie-be.d: Likewise. * testsuite/ld-aarch64/tls-large-ie.d: Likewise. * testsuite/ld-aarch64/tls-relax-all.d: Likewise. * testsuite/ld-aarch64/tls-relax-gd-ie.d: Likewise. * testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise. * testsuite/ld-aarch64/tls-relax-gdesc-ie.d: Likewise. * testsuite/ld-aarch64/tls-relax-large-desc-ie-be.d: Likewise. * testsuite/ld-aarch64/tls-relax-large-desc-ie.d: Likewise. * testsuite/ld-aarch64/tls-tiny-desc.d: Likewise. * testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
#source: tls-relax-all.s
|
|
#ld: -T relocs.ld -e0
|
|
#objdump: -dr
|
|
#...
|
|
+10000: a9bf7bfd stp x29, x30, \[sp, #-16\]!
|
|
+10004: 910003fd mov x29, sp
|
|
+10008: 90000080 adrp x0, 20000 <_GLOBAL_OFFSET_TABLE_>
|
|
+1000c: f9400400 ldr x0, \[x0, #8\]
|
|
+10010: d503201f nop
|
|
+10014: d503201f nop
|
|
+10018: d53bd041 mrs x1, tpidr_el0
|
|
+1001c: 8b000020 add x0, x1, x0
|
|
+10020: b9400001 ldr w1, \[x0\]
|
|
+10024: d2a00000 movz x0, #0x0, lsl #16
|
|
+10028: f2800280 movk x0, #0x14
|
|
+1002c: d503201f nop
|
|
+10030: d503201f nop
|
|
+10034: d53bd042 mrs x2, tpidr_el0
|
|
+10038: 8b000040 add x0, x2, x0
|
|
+1003c: b9400000 ldr w0, \[x0\]
|
|
+10040: 0b000021 add w1, w1, w0
|
|
+10044: 90000080 adrp x0, 20000 <_GLOBAL_OFFSET_TABLE_>
|
|
+10048: f9400800 ldr x0, \[x0, #16\]
|
|
+1004c: d53bd041 mrs x1, tpidr_el0
|
|
+10050: 8b000020 add x0, x1, x0
|
|
+10054: b9400000 ldr w0, \[x0\]
|
|
+10058: 0b000021 add w1, w1, w0
|
|
+1005c: d2a00000 movz x0, #0x0, lsl #16
|
|
+10060: f2800380 movk x0, #0x1c
|
|
+10064: d53bd041 mrs x1, tpidr_el0
|
|
+10068: 8b000020 add x0, x1, x0
|
|
+1006c: b9400000 ldr w0, \[x0\]
|
|
+10070: 0b000021 add w1, w1, w0
|
|
+10074: d53bd042 mrs x2, tpidr_el0
|
|
+10078: d2a00000 movz x0, #0x0, lsl #16
|
|
+1007c: f2800400 movk x0, #0x20
|
|
+10080: 8b000040 add x0, x2, x0
|
|
+10084: b9400000 ldr w0, \[x0\]
|
|
+10088: 0b000020 add w0, w1, w0
|