This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Adjustments for a.out assembler


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]