]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
binutils: run objcopy set-section-alignment also for COFF
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Apr 2025 08:25:16 +0000 (10:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Apr 2025 08:25:16 +0000 (10:25 +0200)
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.

binutils/testsuite/binutils-all/set-section-alignment.d

index a193bb78973b285b1ddcf53f28de5b7f0ad94ce6..2f6379a677e36b2c4295e3f9e0dcbd8c11f07244 100644 (file)
@@ -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