From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 6 17:40:01 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 51AD0CD for ; Tue, 6 Nov 2012 17:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 382D48FC12 for ; Tue, 6 Nov 2012 17:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qA6He1X2038537 for ; Tue, 6 Nov 2012 17:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qA6He1fW038536; Tue, 6 Nov 2012 17:40:01 GMT (envelope-from gnats) Date: Tue, 6 Nov 2012 17:40:01 GMT Message-Id: <201211061740.qA6He1fW038536@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ed Maste Subject: Re: misc/153157: [build] [patch] Add support for generating userland debug symbols during installworld X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Ed Maste List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 17:40:01 -0000 The following reply was made to PR misc/153157; it has been noted by GNATS. From: Ed Maste To: bug-followup@FreeBSD.org, markjdb@gmail.com Cc: Subject: Re: misc/153157: [build] [patch] Add support for generating userland debug symbols during installworld Date: Tue, 6 Nov 2012 12:32:32 -0500 Now that I've had a chance to look at the patch in detail I see another issue - STRIPBIN is set to the absolute path /usr/src/tools/stripbin.sh and will not use the file in the source tree. To address this and more easily accommodate changes that brooks@ has in the pipeline we could follow the model used in kern.post.mk: explicitly invoke objcopy --only-keep-debug and --add-gnu-debuglink. It does mean we'd need to build ${PROG}.debug though, and objcopy to ${PROG} and ${PROG}.symbols in the objdir.