This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] In x86 -n docs, mention that you need an explicit nop fill byte.
- From: Jim Wilson <jimw at sifive dot com>
- To: binutils at sourceware dot org
- Cc: Jim Wilson <jimw at sifive dot com>
- Date: Wed, 22 Nov 2017 12:04:21 -0800
- Subject: [PATCH] In x86 -n docs, mention that you need an explicit nop fill byte.
- Authentication-results: sourceware.org; auth=none
The testcase HJ added is nice, but I think we should also clarify the
documentation as it doesn't have enough info for one to understand what the -n
option does
Comments?
gas/
PR gas/22464
* doc/c-i386.texi (-n): Clarify docs.
---
gas/doc/c-i386.texi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index a1d33bde3d..a0e280c63c 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -74,7 +74,8 @@ usage and use x86-64 as target platform).
@item -n
By default, x86 GAS replaces multiple nop instructions used for
alignment within code sections with multi-byte nop instructions such
-as leal 0(%esi,1),%esi. This switch disables the optimization.
+as leal 0(%esi,1),%esi. This switch disables the optimization if a single
+byte nop (0x90) is explicitly specified as the fill byte for alignment.
@cindex @samp{--divide} option, i386
@item --divide
--
2.14.1