diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2020-08-12 00:04:34 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-02 11:00:22 +1000 |
commit | af13a2244d59c4d63a25abd8257cbaef9d9ffebc (patch) | |
tree | b758b9bf893716e0561c7cbf1d2a589c5df6cbb4 /arch/powerpc/tools | |
parent | 3745ae63b405b09c86718f95d96c4b2d2827b087 (diff) | |
download | linux-af13a2244d59c4d63a25abd8257cbaef9d9ffebc.tar.bz2 |
powerpc: unrel_branch_check.sh: exit silently for early errors
If we can't find the address of __end_interrupts, then we still exit
successfully as that is the current behaviour.
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/20200811140435.20957-8-sfr@canb.auug.org.au
Diffstat (limited to 'arch/powerpc/tools')
-rwxr-xr-x | arch/powerpc/tools/unrel_branch_check.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/tools/unrel_branch_check.sh b/arch/powerpc/tools/unrel_branch_check.sh index 4489f16a443c..70da90270c78 100755 --- a/arch/powerpc/tools/unrel_branch_check.sh +++ b/arch/powerpc/tools/unrel_branch_check.sh @@ -14,9 +14,12 @@ kstart=0xc000000000000000 printf -v kend '0x%x' $(( kstart + 0x10000 )) end_intr=0x$( -$objdump -R -d --start-address="$kstart" --stop-address="$kend" "$vmlinux" | +$objdump -R -d --start-address="$kstart" --stop-address="$kend" "$vmlinux" 2>/dev/null | awk '$2 == "<__end_interrupts>:" { print $1 }' ) +if [ "$end_intr" = "0x" ]; then + exit 0 +fi $objdump -R -D --no-show-raw-insn --start-address="$kstart" --stop-address="$end_intr" "$vmlinux" | sed -E -n ' |