Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

modpost: rename R_ARM_THM_CALL to R_ARM_THM_PC22

/usr/include/elf.h, which originates from the glibc/musl, defines
R_ARM_THM_PC22 instead of R_ARM_THM_CALL.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>

+1 -5
+1 -5
scripts/mod/modpost.c
··· 1168 1168 return (Elf_Addr)(-1); 1169 1169 } 1170 1170 1171 - #ifndef R_ARM_THM_CALL 1172 - #define R_ARM_THM_CALL 10 1173 - #endif 1174 - 1175 1171 static int32_t sign_extend32(int32_t value, int index) 1176 1172 { 1177 1173 uint8_t shift = 31 - index; ··· 1228 1232 ((lower & 0x07ff) << 1), 1229 1233 20); 1230 1234 return offset + sym->st_value + 4; 1231 - case R_ARM_THM_CALL: 1235 + case R_ARM_THM_PC22: 1232 1236 case R_ARM_THM_JUMP24: 1233 1237 /* 1234 1238 * Encoding T4: