Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42795
b: refs/heads/master
c: 59287c0
h: refs/heads/master
i:
  42793: 99c0069
  42791: 9e6a1fc
v: v3
  • Loading branch information
Marcus Meissner authored and Linus Torvalds committed Dec 7, 2006
1 parent a206341 commit b44124c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b23984d0a12a4821b2e9712c71550f321eb88bb5
refs/heads/master: 59287c0913cc9a6c75712a775f6c1c1ef418ef3b
8 changes: 7 additions & 1 deletion trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,13 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
* default mmap base, as well as whatever program they
* might try to exec. This is because the brk will
* follow the loader, and is not movable. */
load_bias = ELF_PAGESTART(ELF_ET_DYN_BASE - vaddr);
if (current->flags & PF_RANDOMIZE)
load_bias = randomize_range(0x10000,
ELF_ET_DYN_BASE,
0);
else
load_bias = ELF_ET_DYN_BASE;
load_bias = ELF_PAGESTART(load_bias - vaddr);
}

error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt,
Expand Down

0 comments on commit b44124c

Please sign in to comment.