Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern bump the number of allowed sections to 1024; e.g. S...



details:   https://anonhg.NetBSD.org/src/rev/2901b30a0837
branches:  trunk
changeset: 568829:2901b30a0837
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Aug 01 22:16:19 2004 +0000

description:
bump the number of allowed sections to 1024; e.g. SuSE 9.1 packaged
Mozilla 1.6 has 726 sections

diffstat:

 sys/kern/exec_elf32.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 02a86e210fc3 -r 2901b30a0837 sys/kern/exec_elf32.c
--- a/sys/kern/exec_elf32.c     Sun Aug 01 21:52:09 2004 +0000
+++ b/sys/kern/exec_elf32.c     Sun Aug 01 22:16:19 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf32.c,v 1.97 2004/01/07 16:42:53 thorpej Exp $  */
+/*     $NetBSD: exec_elf32.c,v 1.98 2004/08/01 22:16:19 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.97 2004/01/07 16:42:53 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.98 2004/08/01 22:16:19 jdolecek Exp $");
 
 /* If not included by exec_elf64.c, ELFSIZE won't be defined. */
 #ifndef ELFSIZE
@@ -222,7 +222,7 @@
        if (eh->e_type != type)
                return (ENOEXEC);
 
-       if (eh->e_shnum > 512 ||
+       if (eh->e_shnum > 1024 ||
            eh->e_phnum > 128)
                return (ENOEXEC);
 



Home | Main Index | Thread Index | Old Index