Skip to content

Commit d26bf75

Browse files
mpegregkh
authored andcommitted
powerpc/tools: Don't quote $objdump in scripts
[ Upstream commit e44ff9e ] Some of our scripts are passed $objdump and then call it as "$objdump". This doesn't work if it contains spaces because we're using ccache, for example you get errors such as: ./arch/powerpc/tools/relocs_check.sh: line 48: ccache ppc64le-objdump: No such file or directory ./arch/powerpc/tools/unrel_branch_check.sh: line 26: ccache ppc64le-objdump: No such file or directory Fix it by not quoting the string when we expand it, allowing the shell to do the right thing for us. Fixes: a71aa05 ("powerpc: Convert relocs_check to a shell script using grep") Fixes: 4ea8065 ("powerpc/64s: Tool to flag direct branches from unrelocated interrupt vectors") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191024004730.32135-1-mpe@ellerman.id.au Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 89c7e99 commit d26bf75

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/powerpc/tools/relocs_check.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ objdump="$1"
2020
vmlinux="$2"
2121

2222
bad_relocs=$(
23-
"$objdump" -R "$vmlinux" |
23+
$objdump -R "$vmlinux" |
2424
# Only look at relocation lines.
2525
grep -E '\<R_' |
2626
# These relocations are okay

‎arch/powerpc/tools/unrel_branch_check.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ vmlinux="$2"
1818
#__end_interrupts should be located within the first 64K
1919

2020
end_intr=0x$(
21-
"$objdump" -R "$vmlinux" -d --start-address=0xc000000000000000 \
21+
$objdump -R "$vmlinux" -d --start-address=0xc000000000000000 \
2222
--stop-address=0xc000000000010000 |
2323
grep '\<__end_interrupts>:' |
2424
awk '{print $1}'
2525
)
2626

2727
BRANCHES=$(
28-
"$objdump" -R "$vmlinux" -D --start-address=0xc000000000000000 \
28+
$objdump -R "$vmlinux" -D --start-address=0xc000000000000000 \
2929
--stop-address=${end_intr} |
3030
grep -e "^c[0-9a-f]*:[[:space:]]*\([0-9a-f][0-9a-f][[:space:]]\)\{4\}[[:space:]]*b" |
3131
grep -v '\<__start_initialization_multiplatform>' |

0 commit comments

Comments
 (0)