From owner-svn-src-stable-8@FreeBSD.ORG Mon Mar 19 22:20:48 2012 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FBDE106564A; Mon, 19 Mar 2012 22:20:48 +0000 (UTC) (envelope-from kensmith@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7A3248FC0C; Mon, 19 Mar 2012 22:20:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2JMKmFO088965; Mon, 19 Mar 2012 22:20:48 GMT (envelope-from kensmith@svn.freebsd.org) Received: (from kensmith@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2JMKmuk088963; Mon, 19 Mar 2012 22:20:48 GMT (envelope-from kensmith@svn.freebsd.org) Message-Id: <201203192220.q2JMKmuk088963@svn.freebsd.org> From: Ken Smith Date: Mon, 19 Mar 2012 22:20:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r233211 - stable/8/sys/conf X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 22:20:48 -0000 Author: kensmith Date: Mon Mar 19 22:20:47 2012 New Revision: 233211 URL: http://svn.freebsd.org/changeset/base/233211 Log: We seem to be having issues with a bug in the loader that causes it to estimate the program header size for the kernel wrong. It can result in the kernel build failing with the message: ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) ld: final link failed: Bad value Tinderbox builds were failing with this message a short time ago, and I encountered it while preparing the i386 build machine for the 8.3-RC2 builds. Konstantin has looked at it and believes the issue was fixed in recent versions of binutils. It is a bit too late in the release process to be messing around with the loader and/or binutils. This workaround seems to take care of the problem for now. Reviewed by: kib Modified: stable/8/sys/conf/ldscript.i386 Modified: stable/8/sys/conf/ldscript.i386 ============================================================================== --- stable/8/sys/conf/ldscript.i386 Mon Mar 19 22:08:13 2012 (r233210) +++ stable/8/sys/conf/ldscript.i386 Mon Mar 19 22:20:47 2012 (r233211) @@ -6,7 +6,7 @@ SEARCH_DIR(/usr/lib); SECTIONS { /* Read-only sections, merged into text segment: */ - . = kernbase + kernload + SIZEOF_HEADERS; + . = kernbase + kernload + 256; .interp : { *(.interp) } .hash : { *(.hash) } .dynsym : { *(.dynsym) }