From: Jan Beulich Date: Fri, 4 Apr 2025 08:25:16 +0000 (+0200) Subject: binutils: run objcopy set-section-alignment also for COFF X-Git-Tag: binutils-2_45~968 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=379535a2e6efd24086d8a0e885cc5c46a1e72705;p=thirdparty%2Fbinutils-gdb.git binutils: run objcopy set-section-alignment also for COFF There's no reason to limit this to just ELF. TI C30 and Z8k don't encode section alignment in the section entries though (which can't be quite right, or there would need to be another means by which to express alignment needs), so --set-section-alignment simply has no effect there. --- diff --git a/binutils/testsuite/binutils-all/set-section-alignment.d b/binutils/testsuite/binutils-all/set-section-alignment.d index a193bb78973..2f6379a677e 100644 --- a/binutils/testsuite/binutils-all/set-section-alignment.d +++ b/binutils/testsuite/binutils-all/set-section-alignment.d @@ -2,8 +2,8 @@ #PROG: objcopy #objcopy: --set-section-alignment .text=16 #objdump: --section-headers -#target: [is_elf_format] -#xfail: rx-*-* +#target: [is_elf_format] || [is_coff_format] +#xfail: rx-*-* *c30-*-* z8k-*-* #... .*\.text.*2\*\*4