diff options
author | Nick Clifton <nickc@redhat.com> | 2024-04-02 15:08:07 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-04-02 15:09:16 +0100 |
commit | 121a3f4b4f4aac216abe239f6f3bd491b63e5e34 (patch) | |
tree | 56d118e289a4e2cce3c87e9358849541aa799193 /binutils/testsuite | |
parent | b35013e29f3bcf9028aa22291f378010420322fe (diff) | |
download | gdb-121a3f4b4f4aac216abe239f6f3bd491b63e5e34.zip gdb-121a3f4b4f4aac216abe239f6f3bd491b63e5e34.tar.gz gdb-121a3f4b4f4aac216abe239f6f3bd491b63e5e34.tar.bz2 |
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.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 1 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/section-alignment.d | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index d884822..8b432f3 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -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-*-*" diff --git a/binutils/testsuite/binutils-all/section-alignment.d b/binutils/testsuite/binutils-all/section-alignment.d new file mode 100644 index 0000000..d62528c --- /dev/null +++ b/binutils/testsuite/binutils-all/section-alignment.d @@ -0,0 +1,9 @@ +#source: pr23633.s +#PROG: objcopy +#objcopy: --section-alignment=512 +#objdump: -P sections +#target: [is_pecoff_format] + +#... +.* Align: 512.* +#pass |