From: Clément Chigot Date: Mon, 16 Oct 2023 08:13:36 +0000 (+0200) Subject: objcopy: Fix name of the field modified by pe_stack_reserve. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f9073e5b8f7828a97d6cb1e7a43c6ad1fb40a9b;p=binutils-gdb.git objcopy: Fix name of the field modified by pe_stack_reserve. --- 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;