Skip to content

Commit

Permalink
x86_64: patch: Add -fpic -fno-PIE hint
Browse files Browse the repository at this point in the history
Link: #5
Signed-off-by: Rong Tao <[email protected]>
  • Loading branch information
Rtoax committed Apr 17, 2024
1 parent be8dfc9 commit 7992bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int apply_relocate_add(const struct load_info *info, GElf_Shdr *sechdrs,
overflow:
lerror("overflow in relocation type %s(%d) val %lx\n",
rela_type_string(r_type), r_type, val);
lerror("likely not compiled with -mcmodel=kernel.\n");
lerror("likely not compiled with -fpic and -fno-PIE.\n");
return -ENOEXEC;
}

0 comments on commit 7992bb6

Please sign in to comment.