Skip to content

Commit 82d369b

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
riscv: Stop considering R_RISCV_NONE as bad relocations
Even though those relocations should not be present in the final vmlinux, there are a lot of them. And since those relocations are considered "bad", they flood the compilation output which may hide some legitimate bad relocations. Signed-off-by: Alexandre Ghiti <[email protected]> Tested-by: Ron Economos <[email protected]> Link: https://lore.kernel.org/r/20250710-dev-alex-riscv_none_bad_relocs_v1-v1-1-758f2fcc6e75@rivosinc.com Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 347e9f5 commit 82d369b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/riscv/tools/relocs_check.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ bad_relocs=$(
1414
${srctree}/scripts/relocs_check.sh "$@" |
1515
# These relocations are okay
1616
# R_RISCV_RELATIVE
17-
grep -F -w -v 'R_RISCV_RELATIVE'
17+
# R_RISCV_NONE
18+
grep -F -w -v 'R_RISCV_RELATIVE
19+
R_RISCV_NONE'
1820
)
1921

2022
if [ -z "$bad_relocs" ]; then

0 commit comments

Comments
 (0)