]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Use arch_jump_destination() in read_intra_function_calls()
authorChen Zhongjin <chenzhongjin@huawei.com>
Thu, 18 Aug 2022 01:45:53 +0000 (09:45 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 19 Aug 2022 17:47:56 +0000 (19:47 +0200)
commit703a251ec6e73adbba74edc75b83d88ebdb0fe0d
tree633cdf2e96b5065745cf5629a742d02f3ead5c38
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
objtool: Use arch_jump_destination() in read_intra_function_calls()

Use arch_jump_destiation() instead of the open-coded 'offset + len +
immediate' that is x86 specific.

Avoids future trouble with other architectures.

Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220818014553.220261-1-chenzhongjin@huawei.com
tools/objtool/check.c