drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / tools / relocs_check.sh
blobbaeb2e7b2290558d696afbc5429d6a3c69ae49e1
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Based on powerpc relocs_check.sh
5 # This script checks the relocations of a vmlinux for "suspicious"
6 # relocations.
8 if [ $# -lt 3 ]; then
9 echo "$0 [path to objdump] [path to nm] [path to vmlinux]" 1>&2
10 exit 1
13 bad_relocs=$(
14 ${srctree}/scripts/relocs_check.sh "$@" |
15 # These relocations are okay
16 # R_RISCV_RELATIVE
17 grep -F -w -v 'R_RISCV_RELATIVE'
20 if [ -z "$bad_relocs" ]; then
21 exit 0
24 num_bad=$(echo "$bad_relocs" | wc -l)
25 echo "WARNING: $num_bad bad relocations"
26 echo "$bad_relocs"