forked from Imagelibrary/binutils-gdb
Update objcopy's --section-alignment option so that it sets the alignment flag on PE sections. Add a check for aligned sections not matching their VMAs.
This commit is contained in:
@@ -1463,6 +1463,7 @@ if [is_elf_format] {
|
||||
run_dump_test "pr23633"
|
||||
|
||||
run_dump_test "set-section-alignment"
|
||||
run_dump_test "section-alignment"
|
||||
|
||||
setup_xfail "hppa*-*-*"
|
||||
setup_xfail "spu-*-*"
|
||||
|
||||
9
binutils/testsuite/binutils-all/section-alignment.d
Normal file
9
binutils/testsuite/binutils-all/section-alignment.d
Normal file
@@ -0,0 +1,9 @@
|
||||
#source: pr23633.s
|
||||
#PROG: objcopy
|
||||
#objcopy: --section-alignment=512
|
||||
#objdump: -P sections
|
||||
#target: [is_pecoff_format]
|
||||
|
||||
#...
|
||||
.* Align: 512.*
|
||||
#pass
|
||||
Reference in New Issue
Block a user