summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/binutils/testsuite/binutils-all/copy-2.d
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/binutils/testsuite/binutils-all/copy-2.d')
-rw-r--r--binutils-2.25/binutils/testsuite/binutils-all/copy-2.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/binutils-2.25/binutils/testsuite/binutils-all/copy-2.d b/binutils-2.25/binutils/testsuite/binutils-all/copy-2.d
new file mode 100644
index 00000000..5636ff62
--- /dev/null
+++ b/binutils-2.25/binutils/testsuite/binutils-all/copy-2.d
@@ -0,0 +1,18 @@
+#PROG: objcopy
+#objdump: -h
+#objcopy: --set-section-flags foo=contents,alloc,load,code
+#name: copy with setting section flags 2
+#source: copytest.s
+#not-target: *-*-*aout *-*-aix* h8300-*-* hppa*-*-hpux* m68k-*-netbsd m68k-*-openbsd* mips-sony-bsd* mips-*-ultrix* mips-*-osf* mips-*-ecoff* mips-*-irix mips-*-irix[2-4] mips-*-riscos* ns32k-*-netbsd
+# Note - we use copytest.s and a section named "foo" rather
+# than .text because for some file formats (eg PE) the .text
+# section has a fixed set of flags and these cannot be changed.
+
+.*: +file format .*
+
+Sections:
+Idx.*
+#...
+ [0-9]* foo.*
+ CONTENTS, ALLOC, LOAD, CODE
+#...