diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2022-12-27 16:01:03 +0000 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-02-01 09:15:24 -0800 |
commit | a20717aca33b1ff133f513721050fe6c3d7f97b5 (patch) | |
tree | a455aa23940b92642d841ca88eaf21efe23ddef5 /tools | |
parent | 21a899f9fc78be6b289ee4627bccadf560930eb5 (diff) |
objtool: Optimize layout of struct special_alt
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/objtool/include/objtool/special.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |