From 9f9073e5b8f7828a97d6cb1e7a43c6ad1fb40a9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Chigot?= Date: Mon, 16 Oct 2023 10:13:36 +0200 Subject: [PATCH] objcopy: Fix name of the field modified by pe_stack_reserve. --- binutils/objcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 2ce1b07bf7c..ba304c21890 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -2878,7 +2878,7 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch) pe->pe_opthdr.SizeOfStackCommit = pe_stack_commit; if (pe_stack_reserve != (bfd_vma) -1) - pe->pe_opthdr.SizeOfStackCommit = pe_stack_reserve; + pe->pe_opthdr.SizeOfStackReserve = pe_stack_reserve; if (pe_subsystem != -1) pe->pe_opthdr.Subsystem = pe_subsystem; -- 2.30.2