From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pGEw7-0000bZ-7B for mharc-grub-devel@gnu.org; Fri, 13 Jan 2023 02:57:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGEw5-0000bQ-BU for grub-devel@gnu.org; Fri, 13 Jan 2023 02:57:13 -0500 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGEw0-0003sX-4D for grub-devel@gnu.org; Fri, 13 Jan 2023 02:57:13 -0500 Received: by mail-qv1-xf2f.google.com with SMTP id o17so14354595qvn.4 for ; Thu, 12 Jan 2023 23:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Oivb4MqJBxOso9e5D9xEdzE2KwMElIo2j19bOfJW3ys=; b=LU5zGf6PFc0zw6nO8UGhUEZR7biz+I7ZEWxzgmxD9RVVV2StENPWLBd19R4ZmuLc9b 2F/+5de/V4VeEyxm/6X1tguyuc/uxYd2DP6KiBpBbbfqKOd/UdcsJZSjnB3IHSwA+Yvs qxRA4gxxsq1FSAwcuW5xuqXMwY3E8SAcLKYuWdki7Y0MrxQBju9Lj+qW6kC7MC3Pp0Zh txylsPJdNAPHTtN6vrtZ/NKmTeQkGTN08YPkaWigaiXT+hmScAJvb5+HLTeMqUM/gzVW ccPoJzw4tCzucEinAIAcN5Epgdx3USMgNys4TSvdSq8pXzwH0nUSUzqcLRyNCNVs4CBQ V4mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Oivb4MqJBxOso9e5D9xEdzE2KwMElIo2j19bOfJW3ys=; b=x32LVQAahZ/HIPLktrC/1EUP/Df0haRwe2Db/n7AwVc8ymQlwD7LiHKB7Nlu6Pdrir AqMHehYE+bJGf7JqdEKHisIDY4W1xRho3GWnSwX6ilNkup23tD/oQ3FxLLCkBncAj7Op 0r3ZGSpNYhB81nZXWcDlpq2S5T3YZyaiIM5KGj7xMyRKHzQyCrXl+meGQ/JP9eO4GIcQ lV6/I2IuX6UbT7DtRfxulooiooIGuqUrwb5Dr1s7xqN3W+WWMoTUwYBlvSA1PIhKXnFl bx53oVXR371i4CvxubBNrBBes9u/yOJSenolFJBCt3SScaVBNM+vXQat5CS2rGm3TP5H I2wA== X-Gm-Message-State: AFqh2kqV0rthcnhwrKi8FVM0Ee7rGvw7MbmOzmC5kdlPyWNM3P18ZO6C WWkU4jVMxTU1WfkaMcGDBpSoyOIVgUg= X-Google-Smtp-Source: AMrXdXs1gJgpR/zpQZjWFpR9meWyghCwCUFQp8PhuNGqEqhHI3XR1Ce2ivR8N8DqiQ8fJOJvS8lZWw== X-Received: by 2002:a05:6214:b22:b0:534:1fd6:10d8 with SMTP id w2-20020a0562140b2200b005341fd610d8mr10414206qvj.13.1673596625673; Thu, 12 Jan 2023 23:57:05 -0800 (PST) Received: from localhost.localdomain ([2602:ae:1367:5100:a11d:19b2:36f5:1b80]) by smtp.googlemail.com with ESMTPSA id m8-20020a05620a290800b006fb8239db65sm12394852qkp.43.2023.01.12.23.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 23:57:04 -0800 (PST) From: Nicholas Vinson To: grub-devel@gnu.org Cc: Nicholas Vinson Subject: [PATCH 0/1] Grub2 clang MBR image fix Date: Fri, 13 Jan 2023 02:56:34 -0500 Message-Id: X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=nvinson234@gmail.com; helo=mail-qv1-xf2f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2023 07:57:13 -0000 When building grub, the files boot.img and diskboot.img are generated from ELF reference images and have the expectation that they will be 512 bytes inside each. However, when GRUB is built with clang, these files become bigger than 512-bytes because the name of the ELF interpreter is appended to each image due to Clang creating a '.interp' section in the ELF reference image. This patch corrects that issue by updating the objcopy calls so the '.interp' section is not included when extracting the code from the ELF reference images. Nicholas Vinson (1): gentpl.py: Remove .interp section from .img files. gentpl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.39.0