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:
Nick Clifton
2024-04-02 15:08:07 +01:00
parent b35013e29f
commit 121a3f4b4f
5 changed files with 182 additions and 20 deletions

View File

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

View File

@@ -0,0 +1,9 @@
#source: pr23633.s
#PROG: objcopy
#objcopy: --section-alignment=512
#objdump: -P sections
#target: [is_pecoff_format]
#...
.* Align: 512.*
#pass