This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Adjustments for a.out assembler
- To: Diego Novillo <dnovillo at redhat dot com>
- Subject: Re: Adjustments for a.out assembler
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Fri, 22 Dec 2000 13:04:35 -0800
- Cc: binutils at sourceware dot cygnus dot com
- References: <20001215103638.A9107@tornado.cygnus.com> <20001221153253.A3627@valinux.com> <20001222103331.F20489@tornado.cygnus.com>
On Fri, Dec 22, 2000 at 10:33:31AM -0500, Diego Novillo wrote:
> Modra also suggested putting a .p2align directive at the end to
> avoid having to insert extra nops.
I checked in the following patch.
--
H.J. Lu (hjl@valinux.com)
----
2000-12-22 H.J. Lu <hjl@gnu.org>
* gas/i386/intel.s: Replace "nop" with ".p2align 4,0".
* gas/i386/intel.d: Updated.
Index: gas/i386/intel.d
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/testsuite/gas/i386/intel.d,v
retrieving revision 1.4
diff -u -p -r1.4 intel.d
--- gas/i386/intel.d 2000/12/22 00:47:48 1.4
+++ gas/i386/intel.d 2000/12/22 20:59:40
@@ -622,4 +622,4 @@ Disassembly of section .text:
a72: ff 25 d2 09 00 00 [ ]*jmp \*0x9d2
a78: e9 55 ff ff ff [ ]*jmp 9d2 <bar>
a7d: 8b 83 (00 00|d0 09) 00 00 [ ]*mov (0x0|0x9d0)\(%ebx\),%eax
- a83: 90 [ ]*nop[ ]*
+[ ]*...
Index: gas/i386/intel.s
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/testsuite/gas/i386/intel.s,v
retrieving revision 1.4
diff -u -p -r1.4 intel.s
--- gas/i386/intel.s 2000/12/22 00:47:48 1.4
+++ gas/i386/intel.s 2000/12/22 20:56:58
@@ -617,4 +617,4 @@ rot5:
jmp [bar]
jmp bar
mov eax, DWORD PTR gs_foo@GOT[ebx]
- nop
+ .p2align 4,0