objtool: Optimize layout of struct special_alt
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 27 Dec 2022 16:01:03 +0000 (16:01 +0000)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 1 Feb 2023 17:15:24 +0000 (09:15 -0800)
Reduce the size of struct special_alt from 72 to 64 bytes.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20221216-objtool-memory-v2-7-17968f85a464@weissschuh.net
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/include/objtool/special.h

index dc4721e190023296af0e09761d0e1f40b32ddd8c..86d4af9c5aa9dc83cd543a140ab1979979a1d6fa 100644 (file)
@@ -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);