mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use M_EXEC when calling malloc() to allocate the memory to store the module,
as it'll contain executable code.
This commit is contained in:
parent
44a230cd92
commit
78bcf87e3e
1 changed files with 1 additions and 1 deletions
|
|
@ -945,7 +945,7 @@ link_elf_load_file(linker_class_t cls, const char* filename,
|
|||
goto out;
|
||||
}
|
||||
#else
|
||||
ef->address = malloc(mapsize, M_LINKER, M_WAITOK);
|
||||
ef->address = malloc(mapsize, M_LINKER, M_EXEC | M_WAITOK);
|
||||
#endif
|
||||
mapbase = ef->address;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue