We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55cdc5 commit 9630f0dCopy full SHA for 9630f0d
fs/binfmt_elf.c
@@ -1116,11 +1116,11 @@ static int load_elf_binary(struct linux_binprm *bprm)
1116
* independently randomized mmap region (0 load_bias
1117
* without MAP_FIXED nor MAP_FIXED_NOREPLACE).
1118
*/
1119
- if (interpreter) {
+ alignment = maximum_alignment(elf_phdata, elf_ex->e_phnum);
1120
+ if (alignment > ELF_MIN_ALIGN) {
1121
load_bias = ELF_ET_DYN_BASE;
1122
if (current->flags & PF_RANDOMIZE)
1123
load_bias += arch_mmap_rnd();
- alignment = maximum_alignment(elf_phdata, elf_ex->e_phnum);
1124
if (alignment)
1125
load_bias &= ~(alignment - 1);
1126
elf_flags |= MAP_FIXED_NOREPLACE;
0 commit comments