Searched hist:"6 b1992bcdee8b86a74362192d4d8906731918bcc" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/powerpc/tools/ |
H A D | unrel_branch_check.sh | diff 6b1992bcdee8b86a74362192d4d8906731918bcc Wed Aug 12 10:10:36 CEST 2020 Stephen Rothwell <sfr@canb.auug.org.au> powerpc: unrel_branch_check.sh: enable the use of llvm-objdump v9, 10 or 11
Currently, using llvm-objtool, this script just silently succeeds without actually do the intended checking. So this updates it to work properly.
Firstly, llvm-objdump does not add target symbol names to the end of branches in its asm output, so we have to drop the branch to __start_initialization_multiplatform using its address.
Secondly, v9 and 10 specify branch targets as .+<offset>, so we convert those to actual addresses.
Thirdly, v10 and 11 error out on a vmlinux if given the -R option complaining that it is "not a dynamic object". The -R does not make any difference to the asm output, so remove it.
Lastly, v11 produces asm that is very similar to Gnu objtool (at least as far as branches are concerned), so no further changes are necessary to make it work.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200812081036.7969-3-sfr@canb.auug.org.au
|