Skip to content

Commit a20717a

Browse files
t-8chjpoimboe
authored andcommitted
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>
1 parent 21a899f commit a20717a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/objtool/include/objtool/special.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct special_alt {
1919
bool skip_orig;
2020
bool skip_alt;
2121
bool jump_or_nop;
22+
u8 key_addend;
2223

2324
struct section *orig_sec;
2425
unsigned long orig_off;
@@ -27,7 +28,6 @@ struct special_alt {
2728
unsigned long new_off;
2829

2930
unsigned int orig_len, new_len; /* group only */
30-
u8 key_addend;
3131
};
3232

3333
int special_get_alts(struct elf *elf, struct list_head *alts);

0 commit comments

Comments
 (0)