Skip to content

Commit

Permalink
modpost: rename R_ARM_THM_CALL to R_ARM_THM_PC22
Browse files Browse the repository at this point in the history
/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 <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
  • Loading branch information
masahir0y committed Jul 16, 2024
1 parent 3914cdd commit f58437a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,10 +1168,6 @@ static Elf_Addr addend_386_rel(uint32_t *location, unsigned int r_type)
return (Elf_Addr)(-1);
}

#ifndef R_ARM_THM_CALL
#define R_ARM_THM_CALL 10
#endif

static int32_t sign_extend32(int32_t value, int index)
{
uint8_t shift = 31 - index;
Expand Down Expand Up @@ -1232,7 +1228,7 @@ static Elf_Addr addend_arm_rel(void *loc, Elf_Sym *sym, unsigned int r_type)
((lower & 0x07ff) << 1),
20);
return offset + sym->st_value + 4;
case R_ARM_THM_CALL:
case R_ARM_THM_PC22:
case R_ARM_THM_JUMP24:
/*
* Encoding T4:
Expand Down

0 comments on commit f58437a

Please sign in to comment.