* binutils-all/copy-2.d: Change the name of the section whose flags are
changed to "foo" so that the test will work with PE based targets. Skip this test for AOUT based targeted. * binutils-all/copytest.s: New file.
This commit is contained in:
parent
022fac6d2a
commit
7cc27f03b9
|
@ -1,3 +1,10 @@
|
||||||
|
2006-05-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* binutils-all/copy-2.d: Change the name of the section whose
|
||||||
|
flags are changed to "foo" so that the test will work with PE
|
||||||
|
based targets. Skip this test for AOUT based targeted.
|
||||||
|
* binutils-all/copytest.s: New file.
|
||||||
|
|
||||||
2006-05-01 H.J. Lu <hongjiu.lu@intel.com>
|
2006-05-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* binutils-all/objcopy.exp: Run "copy-1" for ELF only.
|
* binutils-all/objcopy.exp: Run "copy-1" for ELF only.
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
#PROG: objcopy
|
#PROG: objcopy
|
||||||
#objdump: -h
|
#objdump: -h
|
||||||
#objcopy: --set-section-flags .text=alloc,data
|
#objcopy: --set-section-flags foo=contents,alloc,load,code
|
||||||
#name: copy with seting section flags 2
|
#name: copy with seting section flags 2
|
||||||
#source: bintest.s
|
#source: copytest.s
|
||||||
|
#not-target: *-*-aout
|
||||||
|
# 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 .*
|
.*: +file format .*
|
||||||
|
|
||||||
Sections:
|
Sections:
|
||||||
Idx.*
|
Idx.*
|
||||||
#...
|
#...
|
||||||
[0-9]* .text.*
|
[0-9]* foo.*
|
||||||
CONTENTS, ALLOC, LOAD, RELOC, DATA
|
CONTENTS, ALLOC, LOAD, CODE
|
||||||
#...
|
#...
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
.globl foo_symbol
|
||||||
|
.section foo
|
||||||
|
foo_symbol:
|
||||||
|
.long 1
|
||||||
|
.section bar
|
||||||
|
bar_symbol:
|
||||||
|
.long 2
|
Loading…
Reference in New Issue