Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2011 14:13:23 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-hackers@freebsd.org, Joerg Sonnenberger <joerg@britannica.bec.de>
Subject:   Re: .eh_frame, .eh_frame_hdr - how to remove that trash
Message-ID:  <4EA01063.8040304@FreeBSD.org>
In-Reply-To: <alpine.BSF.2.00.1110201244001.36805@wojtek.tensor.gdynia.pl>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EA01063.8040304>