[binutils-gdb] binutils: run objcopy set-section-alignment also for COFF
Jan Beulich
jbeulich@sourceware.org
Fri Apr 4 08:27:21 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=379535a2e6efd24086d8a0e885cc5c46a1e72705
commit 379535a2e6efd24086d8a0e885cc5c46a1e72705
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Apr 4 10:25:16 2025 +0200
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:
---
binutils/testsuite/binutils-all/set-section-alignment.d | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
More information about the Binutils-cvs
mailing list