Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.46 /fs/binfmt_elf.c

Filename:/fs/binfmt_elf.c
Lines Added:1
Lines Deleted:7
Also changed in: (Previous) 2.3.43  2.3.39  2.3.29  2.3.25  2.3.13  2.3.12 
(Following) 2.3.48  2.3.49  2.3.50  2.3.99-pre1  2.3.99-pre2  2.3.99-pre3 

Location
[  2.3.46
  [  fs
     o  binfmt_elf.c

Patch

diff -u --recursive --new-file v2.3.45/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
--- v2.3.45/linux/fs/binfmt_elf.c   Thu Feb 10 17:11:16 2000
+++ linux/fs/binfmt_elf.c   Mon Feb 14 15:31:14 2000
@@ -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),


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.