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]

Fix for gas ARM testsuite test ADRL


Hi Guys,

  I am applying the following patch to fix a gas testsuite failure
  for the arm-coff toolchain.  The problem was that the disassembly
  under COFF was including a label reference (relative to .text)
  whereas under ELF it was not.  (For some reason the .text label
  produced by the arm-elf toolchain is marked as a local label, and so
  gets ignored by the disassembler).

  The patch adds an explicit, global label to the start of the
  assembler source so that both COFF and ELF toolchains will now
  produce a disassembly with a label reference.  The patch also fixes
  the expected disassembly to account for this label.

Cheers
	Nick

2001-01-11  Nick Clifton  <nickc@redhat.com>

	* gas/arm/adrl.s: Add global label 'foo'.
	* gas/arm/adrl.d: Expect to see references to 'foo' in the
	disassembly.  COFF and ELF disassemblys should now be the
	* same.

Index: gas/arm/adrl.s
===================================================================
RCS file: /cvs/src//src/gas/testsuite/gas/arm/adrl.s,v
retrieving revision 1.1
diff -p -r1.1 adrl.s
*** adrl.s	2001/01/01 13:43:06	1.1
--- adrl.s	2001/01/11 18:37:45
***************
*** 1,5 ****
--- 1,6 ----
  	@ test ADRL pseudo-op
  .text
+ foo:	
  .align 0
  1:
          .space 8192
Index: gas/arm/adrl.d
===================================================================
RCS file: /cvs/src//src/gas/testsuite/gas/arm/adrl.d,v
retrieving revision 1.1
diff -p -r1.1 adrl.d
*** adrl.d	2001/01/01 13:43:06	1.1
--- adrl.d	2001/01/11 18:37:45
***************
*** 7,18 ****
  
  Disassembly of section .text:
  	...
! 0x00002000 e24f0008 	sub	r0, pc, #8	; 0x8
! 0x00002004 e2400c20 	sub	r0, r0, #8192	; 0x2000
! 0x00002008 e28f0018 	add	r0, pc, #24	; 0x18
! 0x0000200c e2800c20 	add	r0, r0, #8192	; 0x2000
! 0x00002010 e24f0018 	sub	r0, pc, #24	; 0x18
! 0x00002014 e1a00000 	nop			\(mov r0,r0\)
! 0x00002018 e28f0000 	add	r0, pc, #0	; 0x0
! 0x0000201c e1a00000 	nop			\(mov r0,r0\)
  	...
--- 7,18 ----
  
  Disassembly of section .text:
  	...
! 00002000 <.*> e24f0008 	sub	r0, pc, #8	; 0x8
! 00002004 <.*> e2400c20 	sub	r0, r0, #8192	; 0x2000
! 00002008 <.*> e28f0018 	add	r0, pc, #24	; 0x18
! 0000200c <.*> e2800c20 	add	r0, r0, #8192	; 0x2000
! 00002010 <.*> e24f0018 	sub	r0, pc, #24	; 0x18
! 00002014 <.*> e1a00000 	nop			\(mov r0,r0\)
! 00002018 <.*> e28f0000 	add	r0, pc, #0	; 0x0
! 0000201c <.*> e1a00000 	nop			\(mov r0,r0\)
  	...

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