[PATCH 4/4] aarch64: Enable `-M notes' by default

Alice Carlotti alice.carlotti@arm.com
Thu Nov 6 13:54:57 GMT 2025


We already print other instruction comments, such as condition code
aliases, by default.  The `-M no-notes' option has been available in
Binutils for over 7 years, so if anyone does need the notes to be
disabled then they can do so explicitly.


diff --git a/gas/testsuite/gas/aarch64/sysreg/sysreg.d b/gas/testsuite/gas/aarch64/sysreg/sysreg.d
index 36d9b592bee99b2fd06f623f421b4117243b71ca..afcadadb946fd00d1b08ee6fac6b86301d2519f1 100644
--- a/gas/testsuite/gas/aarch64/sysreg/sysreg.d
+++ b/gas/testsuite/gas/aarch64/sysreg/sysreg.d
@@ -38,7 +38,7 @@ Disassembly of section \.text:
 .*:	d53f0f00 	mrs	x0, s3_7_c0_c15_0
 .*:	d5184b00 	msr	s3_0_c4_c11_0, x0
 .*:	d5384b00 	mrs	x0, s3_0_c4_c11_0
-.*:	d5110300 	msr	trcstatr, x0
+.*:	d5110300 	msr	trcstatr, x0  // note: writing to a read-only register
 .*:	d5310300 	mrs	x0, trcstatr
 .*:	d53804e0 	mrs	x0, id_aa64fpfr0_el1
 .*:	d5380440 	mrs	x0, id_aa64pfr2_el1
diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c
index c9e60a971521f417aa29186f6e852d34f9d973f4..2a6fde3ed672e13dd294bbc609386de15f3c6190 100644
--- a/opcodes/aarch64-dis.c
+++ b/opcodes/aarch64-dis.c
@@ -52,8 +52,8 @@ static bfd_vma last_mapping_addr = 0;
 
 /* Other options */
 static int no_aliases = 0;	/* If set disassemble as most general inst.  */
-static int no_notes = 1;	/* If set do not print disassemble notes in the
-				  output as comments.  */
+static int no_notes = 0;	/* If set do not print disassemble notes in the
+				   output as comments.  */
 
 /* Currently active instruction sequence.  */
 static aarch64_instr_sequence insn_sequence;


More information about the Binutils mailing list