[PATCH] x86_64: Remove elf32_map in 32bit ELF loader

It's identical to the standard elf_map.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Andi Kleen and committed by Linus Torvalds 562795fe f0cf5d1a

-17
-17
arch/x86_64/ia32/ia32_binfmt.c
··· 293 293 } while(0) 294 294 295 295 296 - #define elf_map elf32_map 297 - 298 296 #include <linux/module.h> 299 297 300 298 MODULE_DESCRIPTION("Binary format loader for compatibility with IA32 ELF binaries."); ··· 387 389 return 0; 388 390 } 389 391 EXPORT_SYMBOL(ia32_setup_arg_pages); 390 - 391 - static unsigned long 392 - elf32_map (struct file *filep, unsigned long addr, struct elf_phdr *eppnt, int prot, int type) 393 - { 394 - unsigned long map_addr; 395 - struct task_struct *me = current; 396 - 397 - down_write(&me->mm->mmap_sem); 398 - map_addr = do_mmap(filep, ELF_PAGESTART(addr), 399 - eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr), prot, 400 - type, 401 - eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr)); 402 - up_write(&me->mm->mmap_sem); 403 - return(map_addr); 404 - } 405 392 406 393 #ifdef CONFIG_SYSCTL 407 394 /* Register vsyscall32 into the ABI table */