]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/binfmt_elf.c
Revert some of "binfmt_elf: cleanups"
[karo-tx-linux.git] / fs / binfmt_elf.c
index 0c42cdbabecff0c4c8d9d0e597273ff4fce79507..cfc22c9d75bc0e468156002cafaf950955ee67db 100644 (file)
@@ -321,6 +321,8 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
        return 0;
 }
 
+#ifndef elf_map
+
 static unsigned long elf_map(struct file *filep, unsigned long addr,
                struct elf_phdr *eppnt, int prot, int type,
                unsigned long total_size)
@@ -355,6 +357,8 @@ static unsigned long elf_map(struct file *filep, unsigned long addr,
        return(map_addr);
 }
 
+#endif /* !elf_map */
+
 static unsigned long total_mapping_size(struct elf_phdr *cmds, int nr)
 {
        int i, first_idx = -1, last_idx = -1;