From patchwork Mon Oct 16 08:39:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Cl=C3=A9ment_Chigot?= X-Patchwork-Id: 77869 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85668385703D for ; Mon, 16 Oct 2023 08:40:00 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 870B23857721 for ; Mon, 16 Oct 2023 08:39:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 870B23857721 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 870B23857721 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697445583; cv=none; b=AeQ14zEK0pG8cYl4xvgdJfbX3S9wsPdzzP75gaPh67H7/dGP1hWwqB11QaDMrEa3sM+Pplt3sLkdMD3btAGsYsGN45CLJCnMrBcIxYmLjefZ40mST135mUFsUHcPrBg+i1nQHZgVeUTQukFXBMDNUFP7x1IWjgd/U64agrAatCY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697445583; c=relaxed/simple; bh=0UGDP5b/DvO7odUPDe0hYl3HfmTnjduMjijpKAkwNRQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=EYUISbymCklKgY4PW6KsYWZ29g6TIV8w/eWx4dXrhliA+cJyfcy30q79O7I5ihZT/E7u5z45x1t3Q2/PTge9pw17GOJLm+0yTZ5GTAxyCKes2DHd0nyMHhxc8LzV9WzQ+tG8GBvjG94e0afrEvkJw27EFzPYxybuFKumXnNZi8g= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-32d9b507b00so2567704f8f.1 for ; Mon, 16 Oct 2023 01:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1697445578; x=1698050378; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cJ9rB5h4dnOW/VUsSLsWdeRfS75QAn1mBgs6Z2Hy+QM=; b=jdkSxywriR/LaFmj8VTbVKdvI/sKhwD0sr8uLmaVxOx4KIeSjx7KdVxOWBdy/LfsMs rHIuov/wJ8vl/rq96quAAsW6qfa3Jzx8pQ1KqhXYOfTI+LHCwPSAUj4uXa5e9k6VIWt4 YUi4teD7fI2iuf4hba1tKTAJLFRtjHkN58j/0NCTfo1UxqbuAPgEoUOrJUQB1GHi/DVk TFbVgDs10wz/rC+jFbr4QfXJ4zIORqTByA0FqrHZ1xDyYSM4UveT1Dn8oW3K7fppNyLo Os3ttZYY6645TRo//CQozQCXZ6aSJEewQOCCW3QUV0VYkuu2Jl808E4HMy/izD76n1dC pdLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697445578; x=1698050378; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cJ9rB5h4dnOW/VUsSLsWdeRfS75QAn1mBgs6Z2Hy+QM=; b=cPnkt4xIsOo+m7NWaiMTMR9nRJ9VKGeYDQkZGgtDMtsMDHvAMUbjujejnG9TMazJyP vNHwYWN/gt5l+w5MoYWfAqGgD4Q0/R9OHA4OfW6P2I/paSe52fqp5vCcVPuNtGUNgyRY bFeNR4dOUsFbhChkPptg0jJ6aZ9ihJn+4XCvVEr5ZbQmb1nWxcsivSbG1LtYKG7PcH3U HULjNhnnZn3z2IKixUPnzSeWWYFNWAN3+/Dmkx2+XyxOZHDyIdnK19e+flxfPKKBcZKo phKzHnwAWPlqmHiWEfFkhEVj18GWJAV93jkTYJq8JcqunSrRcWVGwaHAyzro9oZLxNHN GKsg== X-Gm-Message-State: AOJu0YzQSlgrDcphpnKL4qPgI0h28IqGUPI8lhFSUuEuLaZoT04L784N ESVJlc7Uafd+/BBHxAPxKdNdssqkQEZ2oILjp5A= X-Google-Smtp-Source: AGHT+IEDUqfbpDqxrI6Vp7SeYKyMFcMXzp3EFCdf1lTJ2fyJuppLIuJGg9MnAeb7GUONEFy1Qq0UkQ== X-Received: by 2002:adf:f8c7:0:b0:32d:adda:e8ca with SMTP id f7-20020adff8c7000000b0032daddae8camr2835736wrq.22.1697445578718; Mon, 16 Oct 2023 01:39:38 -0700 (PDT) Received: from chigot-Dell.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id z17-20020a5d4d11000000b0032d9548240fsm9335901wrt.82.2023.10.16.01.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 01:39:38 -0700 (PDT) From: =?utf-8?q?Cl=C3=A9ment_Chigot?= To: binutils@sourceware.org Cc: =?utf-8?q?Cl=C3=A9ment_Chigot?= Subject: [COMMITTED] objcopy: Fix name of the field modified by pe_stack_reserve. Date: Mon, 16 Oct 2023 10:39:35 +0200 Message-Id: <20231016083935.1434090-1-chigot@adacore.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org --- 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;