2006-05-03 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 3 May 2006 14:21:18 +0000 (14:21 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 May 2006 14:21:18 +0000 (14:21 +0000)
* binutils-all/copy-3.d: New.

* objcopy.exp: Run copy-3.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/copy-3.d [new file with mode: 0644]
binutils/testsuite/binutils-all/objcopy.exp

index b046733b79f397535dd89d9f446261060710e50b..dc6a35532d45cbe25f1f00916804c4bc95019ab1 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * binutils-all/copy-3.d: New.
+
+       * objcopy.exp: Run copy-3.
+
 2006-05-02  Dave Korn  <dave.korn@artimi.com>
 
        * binutils-all/copy-1.d (name):  Correct spelling of 'setting'.
diff --git a/binutils/testsuite/binutils-all/copy-3.d b/binutils/testsuite/binutils-all/copy-3.d
new file mode 100644 (file)
index 0000000..373c10f
--- /dev/null
@@ -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
+#...
index f7145649625f19f72814e61d4845096de13e8c03..969249d96a985d4c868e4d654f8d7eace560dd48 100644 (file)
@@ -727,3 +727,4 @@ if [is_elf_format] {
 }
 
 run_dump_test "copy-2"
+run_dump_test "copy-3"