2006-04-26 21:37:05 +08:00
|
|
|
#PROG: objcopy
|
|
|
|
#objdump: -h
|
2006-05-02 20:17:30 +08:00
|
|
|
#objcopy: --set-section-flags foo=contents,alloc,load,code
|
2006-05-03 01:46:41 +08:00
|
|
|
#name: copy with setting section flags 2
|
2006-05-02 20:17:30 +08:00
|
|
|
#source: copytest.s
|
2019-04-16 16:38:11 +08:00
|
|
|
#notarget: *-*-*aout *-*-aix* h8300-*-* hppa*-*-hpux* mips-*-ultrix* mips-*-osf* mips-*-ecoff* mips-*-irix mips-*-irix[2-4] mips-*-riscos* ns32k-*-*
|
2006-05-02 20:17:30 +08:00
|
|
|
# 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.
|
2006-04-26 21:37:05 +08:00
|
|
|
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
|
|
Sections:
|
|
|
|
Idx.*
|
|
|
|
#...
|
2006-05-02 20:17:30 +08:00
|
|
|
[0-9]* foo.*
|
|
|
|
CONTENTS, ALLOC, LOAD, CODE
|
2006-04-26 21:37:05 +08:00
|
|
|
#...
|