From owner-freebsd-stable@FreeBSD.ORG Thu Nov 17 16:15:00 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B742106566C for ; Thu, 17 Nov 2011 16:15:00 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id D066C8FC13 for ; Thu, 17 Nov 2011 16:14:59 +0000 (UTC) Received: by ywe9 with SMTP id 9so1869923ywe.13 for ; Thu, 17 Nov 2011 08:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3WNugf3Ek1FjEfIu7xz8LE3OcC0lYmUdoZGNoufQeLg=; b=it3+oe8PDj7lWReJ5A6HYNWCuQZ98ZFiK+QXqJa1BJHyi+IUceNbkIbSMG/HPHQL1L yJ9NzPdIIMMTgz0IpGEYyaF/7MImR6hqLyItem5bdN8l7i1Rajy2iAK8ouuj0jH8248T uLuGFUcvnSqNh2pKCVgdqAIlsLuzbFS2d2pEA= MIME-Version: 1.0 Received: by 10.101.95.19 with SMTP id x19mr11458270anl.70.1321545070608; Thu, 17 Nov 2011 07:51:10 -0800 (PST) Sender: artemb@gmail.com Received: by 10.236.208.34 with HTTP; Thu, 17 Nov 2011 07:51:10 -0800 (PST) In-Reply-To: <20111117144157.GL1706@albert.catwhisker.org> References: <20111117144157.GL1706@albert.catwhisker.org> Date: Thu, 17 Nov 2011 07:51:10 -0800 X-Google-Sender-Auth: TOP0E_puYJrLKn5ti7LiJriQn_8 Message-ID: From: Artem Belevich To: David Wolfskill , stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 16:15:00 -0000 On Thu, Nov 17, 2011 at 6:41 AM, David Wolfskill wro= te: > MAKE=3D/usr/obj/usr/src/make.i386/make sh /usr/src/sys/conf/newvers.sh GE= NERIC > cc -c -O -pipe =A0-std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs = -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline -Wcast= -qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -nostdinc =A0-I. -I/= usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEAD= ERS -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-= unit-growth=3D100 --param large-function-growth=3D1000 =A0-mno-align-long-s= trings -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow -mno-sse -mno-= sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror =A0vers.c > linking kernel.debug > ld: kernel.debug: Not enough room for program headers (allocated 5, need = 6) > ld: final link failed: Bad value > *** Error code 1 > I'm rather left wondering "room" where, precisely? Room for the program headers at the beginning of the ELF file. Look at sys/conf/ldscript.* and search for SIZEOF_HEADERS. One way to work around the issue is to replace SIZEOF_HEADERS with a fixed value. Try 0x1000. --Artem