From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 20 08:11:15 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 243A9106566B for ; Thu, 20 Oct 2011 08:11:15 +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 8A4D88FC08 for ; Thu, 20 Oct 2011 08:11:14 +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 p9K7fPxO033497 for ; Thu, 20 Oct 2011 09:41:25 +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 p9K7fPmX033494 for ; Thu, 20 Oct 2011 09:41:25 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 20 Oct 2011 09:41:24 +0200 (CEST) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Thu, 20 Oct 2011 09:41:25 +0200 (CEST) Subject: .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 08:11:15 -0000 how to do this and what the hell it is used at all? i found somewhere it is some debugging info but i do not put -g option to compiler while compiling and still get substantial amount of this trash. trying strip -R .eh_frame -R .eh_frame_hdr results in working but LARGER binary, padded with lots of binary zeros. as the resulting program is working fine it proves that it is not needed at all, but i have no idea why this zero padding