mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
2006-04-26 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/2593 * binutils-all/copy-1.d: New file. * binutils-all/copy-1.s: Likewise. * binutils-all/copy-2.d: Likewise. * binutils-all/objcopy.exp: Add run_dump_test "copy-1" and run_dump_test "copy-2". * lib/utils-lib.exp (run_dump_test): New. (slurp_options): Likewise. (regexp_diff): Likewise. (file_contents): Likewise. (verbose_eval): Likewise.
This commit is contained in:
13
binutils/testsuite/binutils-all/copy-1.d
Normal file
13
binutils/testsuite/binutils-all/copy-1.d
Normal file
@ -0,0 +1,13 @@
|
||||
#PROG: objcopy
|
||||
#objdump: -h
|
||||
#objcopy: --set-section-flags .post_text_reserve=contents,alloc,load,readonly,code
|
||||
#name: copy with seting section flags 1
|
||||
|
||||
.*: +file format .*
|
||||
|
||||
Sections:
|
||||
Idx.*
|
||||
#...
|
||||
[0-9]* .post_text_reserve.*
|
||||
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
||||
#...
|
6
binutils/testsuite/binutils-all/copy-1.s
Normal file
6
binutils/testsuite/binutils-all/copy-1.s
Normal file
@ -0,0 +1,6 @@
|
||||
.globl text_symbol
|
||||
.text
|
||||
text_symbol:
|
||||
.long 1
|
||||
.section .post_text_reserve,"w", %nobits
|
||||
.space 160
|
14
binutils/testsuite/binutils-all/copy-2.d
Normal file
14
binutils/testsuite/binutils-all/copy-2.d
Normal file
@ -0,0 +1,14 @@
|
||||
#PROG: objcopy
|
||||
#objdump: -h
|
||||
#objcopy: --set-section-flags .text=alloc,data
|
||||
#name: copy with seting section flags 2
|
||||
#source: bintest.s
|
||||
|
||||
.*: +file format .*
|
||||
|
||||
Sections:
|
||||
Idx.*
|
||||
#...
|
||||
[0-9]* .text.*
|
||||
CONTENTS, ALLOC, LOAD, RELOC, DATA
|
||||
#...
|
@ -724,3 +724,6 @@ if [is_elf_format] {
|
||||
objcopy_test "ELF unknown section type" unknown.s
|
||||
objcopy_test_readelf "ELF group" group.s
|
||||
}
|
||||
|
||||
run_dump_test "copy-1"
|
||||
run_dump_test "copy-2"
|
||||
|
Reference in New Issue
Block a user