From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 20 23:05:19 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 2BC91106564A; Thu, 20 Oct 2011 23:05:19 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 905618FC0C; Thu, 20 Oct 2011 23:05:18 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.4) with ESMTP id p9KN5FEt001625; Fri, 21 Oct 2011 01:05:15 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.4/Submit) with ESMTP id p9KN5F3K001614; Fri, 21 Oct 2011 01:05:15 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 21 Oct 2011 01:05:15 +0200 (CEST) From: Wojciech Puchar To: Zhihao Yuan In-Reply-To: Message-ID: References: <20111020082234.GA4568@britannica.bec.de> <4EA01063.8040304@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Fri, 21 Oct 2011 01:05:15 +0200 (CEST) Cc: Joerg Sonnenberger , Dimitry Andric , 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 23:05:19 -0000 >> --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. > add -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables when compiling with gcc and this trash is not produced at first place.