2006-05-03 14:21:18 +00:00
|
|
|
#PROG: objcopy
|
|
|
|
#objdump: -h
|
|
|
|
#objcopy: --set-section-flags .text=alloc,data
|
|
|
|
#name: copy with setting section flags 3
|
|
|
|
#source: bintest.s
|
2012-10-29 10:09:34 +00:00
|
|
|
#not-target: *-*-*aout *-*-*pe *-*-*coff hppa*-*-hpux* *-*-cygwin* *-*-mingw* m68k-*-netbsd m68k-*-openbsd* ns32k-*-netbsd rs6000-*-*
|
2006-05-03 14:21:18 +00:00
|
|
|
# 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
|
|
|
|
#...
|