[COMMITTED] objcopy: Fix name of the field modified by pe_stack_reserve.

Message ID 20231016083935.1434090-1-chigot@adacore.com
State New
Headers
Series [COMMITTED] objcopy: Fix name of the field modified by pe_stack_reserve. |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_binutils_check--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_binutils_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 warning Patch is already merged

Commit Message

Clément Chigot Oct. 16, 2023, 8:39 a.m. UTC
  ---
 binutils/objcopy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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;