patch-1.3.36 linux/fs/binfmt_elf.c

Next file: linux/fs/buffer.c
Previous file: linux/fs/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.35/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -621,7 +621,11 @@
 			if(k > start_code) start_code = k;
 			k = elf_ppnt->p_vaddr + elf_ppnt->p_filesz;
 			if(k > elf_bss) elf_bss = k;
+#if 1
 			if((elf_ppnt->p_flags | PF_W) && end_code <  k)
+#else
+			if( !(elf_ppnt->p_flags & PF_W) && end_code <  k)
+#endif
 				end_code = k; 
 			if(end_data < k) end_data = k; 
 			k = elf_ppnt->p_vaddr + elf_ppnt->p_memsz;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this