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:
H.J. Lu
2006-04-26 13:37:05 +00:00
parent e843e0f880
commit af3c5dea22
6 changed files with 547 additions and 0 deletions

View 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
#...

View File

@ -0,0 +1,6 @@
.globl text_symbol
.text
text_symbol:
.long 1
.section .post_text_reserve,"w", %nobits
.space 160

View 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
#...

View File

@ -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"