Date: Thu, 20 Oct 2011 07:24:48 -0500 From: Zhihao Yuan <lichray@gmail.com> To: Dimitry Andric <dim@freebsd.org> Cc: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, Joerg Sonnenberger <joerg@britannica.bec.de>, freebsd-hackers@freebsd.org Subject: Re: .eh_frame, .eh_frame_hdr - how to remove that trash Message-ID: <CAGsORuAE=ijhzezLuSJ4aq0a1p_e72Pi58OALAfJAzjkjUbM%2Bg@mail.gmail.com> In-Reply-To: <4EA01063.8040304@FreeBSD.org> References: <alpine.BSF.2.00.1110200937220.33102@wojtek.tensor.gdynia.pl> <20111020082234.GA4568@britannica.bec.de> <alpine.BSF.2.00.1110201244001.36805@wojtek.tensor.gdynia.pl> <4EA01063.8040304@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 20, 2011 at 7:13 AM, Dimitry Andric <dim@freebsd.org> 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<http://lists.freebsd.org/mailman/listinfo/freebsd-hackers> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@** > freebsd.org <freebsd-hackers-unsubscribe@freebsd.org>" > -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGsORuAE=ijhzezLuSJ4aq0a1p_e72Pi58OALAfJAzjkjUbM%2Bg>