]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/binfmt_elf.c
elf: Expose ELF header on arch_setup_additional_pages()
[mirror_ubuntu-hirsute-kernel.git] / fs / binfmt_elf.c
index b6b3d052ca86dee2084da5d806d7848e80cac1c1..aabc11f099cf26bb54fc63a6073f1299d25d9d98 100644 (file)
@@ -1246,7 +1246,7 @@ out_free_interp:
        set_binfmt(&elf_format);
 
 #ifdef ARCH_HAS_SETUP_ADDITIONAL_PAGES
-       retval = arch_setup_additional_pages(bprm, !!interpreter);
+       retval = ARCH_SETUP_ADDITIONAL_PAGES(bprm, elf_ex, !!interpreter);
        if (retval < 0)
                goto out;
 #endif /* ARCH_HAS_SETUP_ADDITIONAL_PAGES */
@@ -1307,7 +1307,7 @@ out_free_interp:
 #endif
 
        finalize_exec(bprm);
-       start_thread(regs, elf_entry, bprm->p);
+       START_THREAD(elf_ex, regs, elf_entry, bprm->p);
        retval = 0;
 out:
        return retval;