This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

[PATCH] Run PE image_size test on more platforms.


    Hi all,

  The ld testcase "PE-COFF SizeOfImage" is currently restricted to targets
matching "i*86-*-mingw32".  That's needlessly restrictive; it really just
verifies that if you have headers, a text section, a data section, and 0x1000
bytes padding, and all sections are aligned to 0x1000, the total size is
0x4000, and that should be true most places.

  It certainly does pass on the other Windows desktop platforms, so this patch
extends it to Cygwin and 64-bit MinGW.  Ok?

ld/testsuite/ChangeLog

	* ld-pe/image_size.d (#target):  Also run test on Cygwin and x86_64
	MinGW targets.

    cheers,
      DaveK
Index: ld/testsuite/ld-pe/image_size.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/image_size.d,v
retrieving revision 1.1
diff -p -u -r1.1 image_size.d
--- ld/testsuite/ld-pe/image_size.d	22 Mar 2007 15:52:29 -0000	1.1
+++ ld/testsuite/ld-pe/image_size.d	2 Apr 2009 14:44:58 -0000
@@ -1,7 +1,7 @@
 #name: PE-COFF SizeOfImage
 #ld: -T image_size.t
 #objdump: -p
-#target: i*86-*-mingw32
+#target: *-*-mingw32 *-*-cygwin
 
 .*:     file format .*
 #...

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