From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 30 02:48:33 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 638F7106566C for ; Sat, 30 Oct 2010 02:48:33 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1864B8FC12 for ; Sat, 30 Oct 2010 02:48:32 +0000 (UTC) Received: by gxk9 with SMTP id 9so2521904gxk.13 for ; Fri, 29 Oct 2010 19:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=EcI0zmElslmOLGpIelHGPVSUUMQvanIqE+EldaWEQR4=; b=rFQUEPgZAj9mmIArgcvG+bXSuq/6HJdkldiZSyBV4HjMDbHSVffJsmLtoOwrTyeO6e 4QoyEfcfpCqs2b8gBCADjboqmsN6K7Ey58mtSSD9NIRUo12mt3TRjgYTKH/k2X5wZMVh DDuewnHMDx8EYI7QlWgbszOrSFYbUiBnl/jhE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=TgAt2tdZ9mHWGcH5X/qohTrwN7913tqCjDoe/xaAUPKkedBQtUp6RdnP0RGO3qLmce wn1//8rQlqPZHNBVZ6ivAJj/opgpAE0gHTDZ4tgkeYY8K/aKtTugFV0CMlFelZMrCXTQ 1XSCzUaaza4xCCaFoB9P22b2u/QDUg+pJ8tPA= MIME-Version: 1.0 Received: by 10.90.22.29 with SMTP id 29mr5339629agv.14.1288406911917; Fri, 29 Oct 2010 19:48:31 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.90.70.19 with HTTP; Fri, 29 Oct 2010 19:48:31 -0700 (PDT) In-Reply-To: <20101030021000.GA1328@mark-laptop-bsd.mark-home> References: <20101029191827.GC1443@mark-laptop-bsd.mark-home> <20101029233900.GC2392@deviant.kiev.zoral.com.ua> <20101030021000.GA1328@mark-laptop-bsd.mark-home> Date: Fri, 29 Oct 2010 19:48:31 -0700 X-Google-Sender-Auth: JE2hZbnDcyranD3x2b4xoZuaOhw Message-ID: From: Garrett Cooper To: Mark Johnston Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Kostik Belousov , freebsd-hackers@freebsd.org Subject: Re: Generating userland debugging symbols X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 02:48:33 -0000 On Fri, Oct 29, 2010 at 7:10 PM, Mark Johnston wrote: > On Fri, Oct 29, 2010 at 06:05:08PM -0700, Garrett Cooper wrote: >> =A0 =A0 But having a strip script might be useful. Some companies brand >> binaries for their own purposes, so having a hook into a strip script >> (it should be no more than a few lines), should suffice. Something >> that my old group used was similar to what's described in the objcopy >> manpage: >> >> =A0 =A0 =A0 =A0 =A0 =A0The =A0intention is that this option will be used= in conjunction with >> =A0 =A0 =A0 =A0 =A0 =A0--add-gnu-debuglink =A0to =A0create =A0a =A0two = =A0part =A0executable. =A0 One =A0a >> =A0 =A0 =A0 =A0 =A0 =A0stripped =A0binary =A0which will occupy less spac= e in RAM and in a dis- >> =A0 =A0 =A0 =A0 =A0 =A0tribution and the second a debugging information = file which is only >> =A0 =A0 =A0 =A0 =A0 =A0needed =A0if =A0debugging abilities are required.= =A0The suggested proce- >> =A0 =A0 =A0 =A0 =A0 =A0dure to create these files is as follows: >> >> =A0 =A0 =A0 =A0 =A0 =A01. >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"foo" then... >> >> =A0 =A0 =A0 =A0 =A0 =A01. >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0create a file containing the debugging in= fo. >> >> =A0 =A0 =A0 =A0 =A0 =A01. >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0stripped executable. >> >> =A0 =A0 =A0 =A0 =A0 =A01.