|
@@ -44,7 +44,7 @@
|
|
|
#define user_siginfo_t siginfo_t
|
|
|
#endif
|
|
|
|
|
|
-static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs);
|
|
|
+static int load_elf_binary(struct linux_binprm *bprm);
|
|
|
static int load_elf_library(struct file *);
|
|
|
static unsigned long elf_map(struct file *, unsigned long, struct elf_phdr *,
|
|
|
int, int, unsigned long);
|
|
@@ -558,7 +558,7 @@ static unsigned long randomize_stack_top(unsigned long stack_top)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
|
+static int load_elf_binary(struct linux_binprm *bprm)
|
|
|
{
|
|
|
struct file *interpreter = NULL; /* to shut gcc up */
|
|
|
unsigned long load_addr = 0, load_bias = 0;
|
|
@@ -575,6 +575,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
|
unsigned long reloc_func_desc __maybe_unused = 0;
|
|
|
int executable_stack = EXSTACK_DEFAULT;
|
|
|
unsigned long def_flags = 0;
|
|
|
+ struct pt_regs *regs = current_pt_regs();
|
|
|
struct {
|
|
|
struct elfhdr elf_ex;
|
|
|
struct elfhdr interp_elf_ex;
|