diff options
author | Christophe Leroy <[email protected]> | 2022-11-14 23:27:48 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2022-11-18 19:00:16 +1100 |
commit | 86ea7f361537f825a699e86fdc9e49be19f128d1 (patch) | |
tree | 522a15c0519d2abf2941ee9d48fe388959efa60b /scripts/generate_rust_analyzer.py | |
parent | 0646c28b417b7fe307c9da72ca1c508e43b57dc0 (diff) |
objtool: Use target file class size instead of a compiled constant
In order to allow using objtool on cross-built kernels,
determine size of long from elf data instead of using
sizeof(long) at build time.
For the time being this covers only mcount.
[Sathvika Vasireddy: Rename variable "size" to "addrsize" and function
"elf_class_size()" to "elf_class_addrsize()", and modify
create_mcount_loc_sections() function to follow reverse christmas tree
format to order local variable declarations.]
Tested-by: Naveen N. Rao <[email protected]>
Reviewed-by: Naveen N. Rao <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Sathvika Vasireddy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions