objcopy: Fix name of the field modified by pe_stack_reserve.
authorClément Chigot <chigot@adacore.com>
Mon, 16 Oct 2023 08:13:36 +0000 (10:13 +0200)
committerClément Chigot <chigot@adacore.com>
Mon, 16 Oct 2023 08:37:23 +0000 (10:37 +0200)
binutils/objcopy.c

index 2ce1b07bf7c8dc65c050aa0edd35eb14255b1c37..ba304c218903f576675d7285c86e94e83ac9bb2d 100644 (file)
@@ -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;