Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/bmax121/KernelPatch into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Sep 1, 2024
2 parents 9841e46 + 27ce684 commit ab52802
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/patch/module/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ static char *next_string(char *string, unsigned long *secsize)
/* Update size with this section: return offset. */
static long get_offset(struct module *mod, unsigned int *size, Elf_Shdr *sechdr, unsigned int section)
{
long ret;
/* Additional bytes needed by arch in front of individual sections */
int arm64_mod_section_prepend = 0;
*size += arm64_mod_section_prepend;
ret = ALIGN(*size, sechdr->sh_addralign ?: 1);
ret = *size;
long ret = ALIGN(*size, sechdr->sh_addralign ?: 1);
*size = ret + sechdr->sh_size;
return ret;
}
Expand Down

0 comments on commit ab52802

Please sign in to comment.