From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 20 12:24:50 2011 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 CF5AF106564A for ; Thu, 20 Oct 2011 12:24:50 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 37C778FC0A for ; Thu, 20 Oct 2011 12:24:49 +0000 (UTC) Received: by eyd10 with SMTP id 10so3672960eyd.13 for ; Thu, 20 Oct 2011 05:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7lxAilYrSnkXEuoRRXQ8gPg5uroZjvH3KPs4ePvtCBo=; b=YSVeXB4BVH4R43j8BCoy5k1FWC+KpOsQqZmi6Op6hCBS+TiMLNgF7zXULUz2v9c+Ev LEWbliUTnvmNd9zfCpzbMDW4crjAusB8thRgvkcab+iRqKOA0HujXPGbSXaJF/aG0yoj nlGmZsdLhrffA5r+cdNzzPwVWl/iBZNEcXn4Q= MIME-Version: 1.0 Received: by 10.213.27.204 with SMTP id j12mr2260841ebc.141.1319113488461; Thu, 20 Oct 2011 05:24:48 -0700 (PDT) Received: by 10.213.113.10 with HTTP; Thu, 20 Oct 2011 05:24:48 -0700 (PDT) In-Reply-To: <4EA01063.8040304@FreeBSD.org> References: <20111020082234.GA4568@britannica.bec.de> <4EA01063.8040304@FreeBSD.org> Date: Thu, 20 Oct 2011 07:24:48 -0500 Message-ID: From: Zhihao Yuan To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Wojciech Puchar , Joerg Sonnenberger , freebsd-hackers@freebsd.org Subject: Re: .eh_frame, .eh_frame_hdr - how to remove that trash 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: Thu, 20 Oct 2011 12:24:51 -0000 On Thu, Oct 20, 2011 at 7:13 AM, Dimitry Andric wrote: > On 2011-10-20 12:44, Wojciech Puchar wrote: > >> i both don't use C++ and don't want to debug when i am linking final >> binary. >> >> how to turn this off? >> > > objcopy --remove-section .eh_frame_hdr --remove-section .eh_frame > --remove-section .rel.eh_frame --remove-section .rela.eh_frame > $your_executable > After I done this, the binary size *increased* a lot, while objdump shows that the content is less. I don't understand. > > No warranty for any blown-off extremities, though. > > ______________________________**_________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@** > freebsd.org " > -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/