On Thu, Oct 20, 2011 at 7:13 AM, Dimitry Andric <[email protected]> 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.
>
> ______________________________**_________________
> [email protected] 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 <[email protected]>"
>



-- 
Zhihao Yuan, nickname lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to