diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index a5702d74d2bd..3939829f6c5c 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -322,6 +322,8 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, | |||
322 | return 0; | 322 | return 0; |
323 | } | 323 | } |
324 | 324 | ||
325 | #ifndef elf_map | ||
326 | |||
325 | static unsigned long elf_map(struct file *filep, unsigned long addr, | 327 | static unsigned long elf_map(struct file *filep, unsigned long addr, |
326 | struct elf_phdr *eppnt, int prot, int type, | 328 | struct elf_phdr *eppnt, int prot, int type, |
327 | unsigned long total_size) | 329 | unsigned long total_size) |
@@ -356,6 +358,8 @@ static unsigned long elf_map(struct file *filep, unsigned long addr, | |||
356 | return(map_addr); | 358 | return(map_addr); |
357 | } | 359 | } |
358 | 360 | ||
361 | #endif /* !elf_map */ | ||
362 | |||
359 | static unsigned long total_mapping_size(struct elf_phdr *cmds, int nr) | 363 | static unsigned long total_mapping_size(struct elf_phdr *cmds, int nr) |
360 | { | 364 | { |
361 | int i, first_idx = -1, last_idx = -1; | 365 | int i, first_idx = -1, last_idx = -1; |