.eh_frame, .eh_frame_hdr - how to remove that trash

Dimitry Andric dim at FreeBSD.org
Thu Oct 20 12:13:23 UTC 2011

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.

More information about the freebsd-hackers mailing list