patch-2.3.46 linux/fs/binfmt_elf.c
Next file: linux/fs/block_dev.c
Previous file: linux/fs/bfs/file.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Feb 14 15:31:14 2000
- Orig file:
v2.3.45/linux/fs/binfmt_elf.c
- Orig date:
Thu Feb 10 17:11:16 2000
diff -u --recursive --new-file v2.3.45/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -269,14 +269,8 @@
if (eppnt->p_flags & PF_W) elf_prot |= PROT_WRITE;
if (eppnt->p_flags & PF_X) elf_prot |= PROT_EXEC;
vaddr = eppnt->p_vaddr;
- if (interp_elf_ex->e_type == ET_EXEC || load_addr_set) {
+ if (interp_elf_ex->e_type == ET_EXEC || load_addr_set)
elf_type |= MAP_FIXED;
-#ifdef __sparc__
- } else {
- load_addr = get_unmapped_area(0, eppnt->p_filesz +
- ELF_PAGEOFFSET(vaddr));
-#endif
- }
map_addr = do_mmap(file,
load_addr + ELF_PAGESTART(vaddr),
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)