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 lo
On Thu, Oct 20, 2011 at 09:41:24AM +0200, Wojciech Puchar wrote:
> how to do this and what the hell it is used at all?
It is used to allow unwinding stack frames. That is required for
exception handling with C++ and also to allow debugging in the presence
of -fomit-frame-pointer, e.g. as used by d
i both don't use C++ and don't want to debug when i am linking final
binary.
how to turn this off?
On Thu, 20 Oct 2011, Joerg Sonnenberger wrote:
On Thu, Oct 20, 2011 at 09:41:24AM +0200, Wojciech Puchar wrote:
how to do this and what the hell it is used at all?
It is used to allow unwindi
on 20/10/2011 13:44 Wojciech Puchar said the following:
> i both don't use C++ and don't want to debug when i am linking final binary.
>
> how to turn this off?
Which compiler do you use?
--
Andriy Gapon
___
freebsd-hackers@freebsd.org mailing list
ht
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
On Thu, Oct 20, 2011 at 7:13 AM, Dimitry Andric 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
Hello
I'd like to measure the memory footprint in C/C++ code for a
program running under FreeBSD and Linux in terms of total process size
including heap objects. Due to execution length, I'd like to avoid the
use of valgrind.
I think that it would be difficult to achieve the task i
i both don't use C++ and don't want to debug when i am linking final binary.
how to turn this off?
Which compiler do you use?
supplied with FreeBSD 8.2
[wojtek@wojtek ~]$ cc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model:
this do the same that strip -R what i already tried and as i already
wrote - the same results.
program is working and sections are stripped but i am getting ca 1MB of
binary zero paddings.
___
freebsd-hackers@freebsd.org mailing list
http://list
After I done this, the binary size *increased* a lot, while objdump shows that
the content is less. I don't understand.
same for me
strip -R .eh_frame -R .eh_frame_hdr do the same.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.o
On 21/10/2011, at 4:27, Razmig K wrote:
>I think that it would be difficult to achieve the task in a
> platform-transparent manner, that's why I'll be using /proc//status on
> Linux, and do something else on FreeBSD.
>I was adviced to have a look on getrusage, which I did, but I found
>
--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.
add -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables
-fno-unwind-tables w
-fno-asynchronous-unwind-tables should get rid of unwind information,
a.k.a. 'crap'.
and this worked. found it just before getting your mail ;)
yes and this is crap... possibly it is needed for some cases and some
languages and i would not call it crap if it would not be included by
default!
On Fri, 21 Oct 2011 01:13:59 +0200 (CEST)
Wojciech Puchar wrote:
> >
> > -fno-asynchronous-unwind-tables should get rid of unwind
> > information, a.k.a. 'crap'.
> and this worked. found it just before getting your mail ;)
>
> yes and this is crap... possibly it is needed for some cases and some
On Fri, 21 Oct 2011 00:20:52 +0200 (CEST)
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?
> >
> > Which compiler do you use?
>
> supplied with FreeBSD 8.2
> [wojtek@wojtek ~]$ cc -v
> Using built-in spe
15 matches
Mail list logo