Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3376174rwl; Tue, 27 Dec 2022 08:15:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXvcnLN6QcSDi5QLB4LhppcQc6sGY852iAs2mHQQFCCIbYi5mGMcn8tHWtobLJ4iYQsSsItC X-Received: by 2002:a17:90b:215:b0:225:bf26:4928 with SMTP id fy21-20020a17090b021500b00225bf264928mr19471543pjb.38.1672157703985; Tue, 27 Dec 2022 08:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672157703; cv=none; d=google.com; s=arc-20160816; b=cYzSpXFvQ0ttok0W0UF2E/LHGs0PkzKox6Qjqgmyv2i36cxvmZs004OWZBEBSUM1SY T1dPdAv3ENlZgQ6lCnOrQlinOivBtuEB0jht7PKMwWjpuuDWj4d6VuI07JhQESw2ZE86 paLMJQ8awfDiJKvP11AzH4+t/uekJIP4iipiR9PiBTqzfgzagRKrXjUebUdXNBE93Sut irex//RhIPjk7CRpDplaxS9DWjUVOAa1okvGCRobPCDazgHmewatekwuHyv3eBN/MSf4 ncHAQKnC6i0Ji1EoOxTMb9T0uLRgOZos4BgdleKYOW322lUIS2tbHAwsGdukp7VsCHe9 aZUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=gMepW4XNSNAfC6fyhrmiejwDhNwjB8W1OpXv46uSSyo=; b=Vk3X7jIbOaO8+pYr/k8YQ69n6F5iO3TpUYmrp3pUmsAjV3zvlIPJfH5UHh4UXdkCcO srQrUztloLLcqi1Sg3FJaeaeTANwyYXrwTOHvG2qk8so1jHny7rxeB8hFOrD19Lw7WlZ VkLvqId/FCKmuMYuu+EKpuIPp4kt7uKrugofIrP6zDr3x9RfWASwzf+zqtEuHf1h7nbJ qHvNQj2UOtJgApIjGVsnE3RHgZjSNGBQ5748BSds5Fdace8jtBvBI8qKbOGO8eMrWfwG Q13T5vhpC0Uq1JOCTYYtMnSYKLqY0LSHXzN0UJC7dpIlCmIscnpZyNovp8nMljnOzG6j s24g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=amxlfhy+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a17090ad34f00b0020a47a4c951si13827483pjx.147.2022.12.27.08.14.54; Tue, 27 Dec 2022 08:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=amxlfhy+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231859AbiL0QDh (ORCPT + 66 others); Tue, 27 Dec 2022 11:03:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbiL0QCw (ORCPT ); Tue, 27 Dec 2022 11:02:52 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB755B4A5 for ; Tue, 27 Dec 2022 08:02:49 -0800 (PST) From: Thomas =?utf-8?q?Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1672156966; bh=QPm4tnLN0YjuqSH/PP3qCzyHZ3iKBL4Z+lxmjKe0ykc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=amxlfhy+MP1y275Npt9ETo36B6ozZo8wrqf3cLIUnRWnh5aU4+3JgCtVUlz67HbJc SNMfURiS7WvPlC4nycAu3l22IokTv+O3AeITA8BEBO5hKm0VlTtZdtAA+lpgiGBNjS ymwTaCVLjDuYhA3OCbOkN+74MIr1ZjKSFL4BFLrs= Date: Tue, 27 Dec 2022 16:01:03 +0000 Subject: [PATCH v2 7/8] objtool: optimize layout of struct special_alt MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: <20221216-objtool-memory-v2-7-17968f85a464@weissschuh.net> References: <20221216-objtool-memory-v2-0-17968f85a464@weissschuh.net> In-Reply-To: <20221216-objtool-memory-v2-0-17968f85a464@weissschuh.net> To: Josh Poimboeuf , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Thomas =?utf-8?q?Wei=C3=9Fschuh?= X-Mailer: b4 0.11.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1672156865; l=856; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=QPm4tnLN0YjuqSH/PP3qCzyHZ3iKBL4Z+lxmjKe0ykc=; b=AEnINnK17XKm+Yujt5K8r+9bzPJKBLA6p9hkW6Q/8EnBpM7k5dpJo+bkSc5LsyKIE0kdzZvneyiA y/LDhEoHCEvGfbsR9r1Dv9TtGYQ0LApDEQh27/oX4l9zpodXWlkb X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reduce the size of struct special_alt from 72 to 64 bytes. Signed-off-by: Thomas Weißschuh --- tools/objtool/include/objtool/special.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/include/objtool/special.h b/tools/objtool/include/objtool/special.h index dc4721e19002..86d4af9c5aa9 100644 --- a/tools/objtool/include/objtool/special.h +++ b/tools/objtool/include/objtool/special.h @@ -19,6 +19,7 @@ struct special_alt { bool skip_orig; bool skip_alt; bool jump_or_nop; + u8 key_addend; struct section *orig_sec; unsigned long orig_off; @@ -27,7 +28,6 @@ struct special_alt { unsigned long new_off; unsigned int orig_len, new_len; /* group only */ - u8 key_addend; }; int special_get_alts(struct elf *elf, struct list_head *alts); -- 2.39.0