From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 20 12:13:23 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 37BF3106566B for ; Thu, 20 Oct 2011 12:13:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id ECF908FC16 for ; Thu, 20 Oct 2011 12:13:22 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:21e3:f32f:69c1:7b24] (unknown [IPv6:2001:7b8:3a7:0:21e3:f32f:69c1:7b24]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id CFEEB5C37; Thu, 20 Oct 2011 14:13:21 +0200 (CEST) Message-ID: <4EA01063.8040304@FreeBSD.org> Date: Thu, 20 Oct 2011 14:13:23 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111012 Thunderbird/8.0 MIME-Version: 1.0 To: Wojciech Puchar References: <20111020082234.GA4568@britannica.bec.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Joerg Sonnenberger 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:13:23 -0000 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 No warranty for any blown-off extremities, though.