current binutils trunk failures on cygwin

H. J. Lu hjl@lucon.org
Wed May 3 14:20:00 GMT 2006


On Tue, May 02, 2006 at 09:53:21AM -0700, H. J. Lu wrote:
> On Tue, May 02, 2006 at 04:31:40PM +0100, Nick Clifton wrote:
> > Hi H. J.
> > 
> > >I chose .text on purpose since we didn't say --set-section-flags
> > >doesn't work on certain sections. copy-1.d already has a non-standard
> > >section. I would prefer to add a new test and make copy-2.d ELF only.
> > 
> > I am OK with adding the new test, but copy-2.d should be non-PE targets 
> > only, not just ELF only.  It is only PE targets which have the problem.
> > 
> 
> Does COFF have the same issue? Here is a patch.
> 
> 

I am going to check in this patch.


H.J.
---
2006-05-02  H.J. Lu  <hongjiu.lu@intel.com>

	* binutils-all/copy-3.d: New.

	* objcopy.exp: Run copy-3.

--- binutils/testsuite/binutils-all/copy-3.d.text	2006-05-02 09:36:37.000000000 -0700
+++ binutils/testsuite/binutils-all/copy-3.d	2006-05-03 07:08:50.000000000 -0700
@@ -0,0 +1,17 @@
+#PROG: objcopy
+#objdump: -h
+#objcopy: --set-section-flags .text=alloc,data
+#name: copy with setting section flags 3
+#source: bintest.s
+#not-target: *-*-aout *-*-*pe* *-*-*coff i*86-*-cygwin* i*86-*-mingw32*
+# The .text # section in PE/COFF has a fixed set of flags and these
+# cannot be changed.  We skip it for them.
+
+.*: +file format .*
+
+Sections:
+Idx.*
+#...
+  [0-9]* .text.*
+                  CONTENTS, ALLOC, LOAD, RELOC, DATA
+#...
--- binutils/testsuite/binutils-all/objcopy.exp.text	2006-05-01 11:04:15.000000000 -0700
+++ binutils/testsuite/binutils-all/objcopy.exp	2006-05-02 09:44:32.000000000 -0700
@@ -727,3 +727,4 @@ if [is_elf_format] {
 }
 
 run_dump_test "copy-2"
+run_dump_test "copy-3"



More information about the Binutils mailing list