diff options
author | Nick Clifton <nickc@redhat.com> | 2006-05-02 12:17:30 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-05-02 12:17:30 +0000 |
commit | 7cc27f03b90c3fad20b4fc535f448c4ee42932d0 (patch) | |
tree | 66eb1b27155c6328720865eaed43ddf7b9ddfcd6 /binutils/testsuite/binutils-all | |
parent | 022fac6d2a2b74313c0262e97b280b1c7fc720f4 (diff) | |
download | gdb-7cc27f03b90c3fad20b4fc535f448c4ee42932d0.zip gdb-7cc27f03b90c3fad20b4fc535f448c4ee42932d0.tar.gz gdb-7cc27f03b90c3fad20b4fc535f448c4ee42932d0.tar.bz2 |
* 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.
Diffstat (limited to 'binutils/testsuite/binutils-all')
-rw-r--r-- | binutils/testsuite/binutils-all/copy-2.d | 12 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/copytest.s | 7 |
2 files changed, 15 insertions, 4 deletions
diff --git a/binutils/testsuite/binutils-all/copy-2.d b/binutils/testsuite/binutils-all/copy-2.d index 486c8e9..582c8c2 100644 --- a/binutils/testsuite/binutils-all/copy-2.d +++ b/binutils/testsuite/binutils-all/copy-2.d @@ -1,14 +1,18 @@ #PROG: objcopy #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 -#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 .* Sections: Idx.* #... - [0-9]* .text.* - CONTENTS, ALLOC, LOAD, RELOC, DATA + [0-9]* foo.* + CONTENTS, ALLOC, LOAD, CODE #... diff --git a/binutils/testsuite/binutils-all/copytest.s b/binutils/testsuite/binutils-all/copytest.s new file mode 100644 index 0000000..33c13b8 --- /dev/null +++ b/binutils/testsuite/binutils-all/copytest.s @@ -0,0 +1,7 @@ + .globl foo_symbol + .section foo +foo_symbol: + .long 1 + .section bar +bar_symbol: + .long 2 |