Skip to content

modpost: fix section mismatch detection for ARM

Masahiro Yamada linux-arm-kernel linux-kbuild lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7modpost: fix section mismatch message for R_ARM_ABS32scripts/mod/modpost.c+9 -30 replies
2/7modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24}scripts/mod/modpost.c+12 -00 replies
3/7modpost: detect section mismatch for R_ARM_{MOVW_ABS_NC,MOVT_ABS}scripts/mod/modpost.c+9 -20 replies
4/7modpost: refactor find_fromsym() and find_tosym()scripts/mod/modpost.c+36 -590 replies
5/7modpost: detect section mismatch for R_ARM_THM_{MOVW_ABS_NC,MOVT_ABS}scripts/mod/modpost.c+26 -52 replies
6/7modpost: fix section_mismatch message for R_ARM_THM_{CALL,JUMP24,JUMP19}scripts/mod/modpost.c+47 -60 replies
7/7modpost: detect section mismatch for R_ARM_REL32scripts/mod/modpost.c+1 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] modpost: fix section mismatch detection for ARM

addend_arm_rel() is completely, entirely bogus.

Fix the code, and also catch more section mismatches.

I confirmed this series is cleanly applicable to linux-next 20230601.

Masahiro Yamada (7):
modpost: fix section mismatch message for R_ARM_ABS32
modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24}
modpost: detect section mismatch for R_ARM_{MOVW_ABS_NC,MOVT_ABS}
modpost: refactor find_fromsym() and find_tosym()
modpost: detect section mismatch for R_ARM_THM_{MOVW_ABS_NC,MOVT_ABS}
modpost: fix section_mismatch message for

    R_ARM_THM_{CALL,JUMP24,JUMP19}

modpost: detect section mismatch for R_ARM_REL32

 scripts/mod/modpost.c | 193 ++++++++++++++++++++++++++++--------------
 1 file changed, 129 insertions(+), 64 deletions(-)
Signature · 1 line
2.39.2