Skip to content

Commit 2ff7172

Browse files
awojasinskicarlescufi
authored andcommitted
llext: Fix use of macro for relocation symbol index from r_info
Replace use of 32-bit architecture macro to macro arch agnostic that is resolved in compilation. Signed-off-by: Adam Wojasinski <[email protected]>
1 parent 771a3d7 commit 2ff7172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/llext/llext_link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void llext_link_plt(struct llext_loader *ldr, struct llext *ext,
166166
}
167167

168168
/* Index in the symbol table */
169-
unsigned int j = ELF32_R_SYM(rela.r_info);
169+
unsigned int j = ELF_R_SYM(rela.r_info);
170170

171171
if (j >= sym_cnt) {
172172
LOG_WRN("PLT: idx %u >= %u", j, sym_cnt);

0 commit comments

Comments
 (0)