get rid weak symbols code
Andrew Haley
aph@redhat.com
Mon Apr 4 12:24:00 GMT 2011
On 04/04/2011 11:39 AM, Jiri Olsa wrote:
> Andrew wrote:
>> Try -ffunction-sections .
>
> that did not help, I stil can see the dead code in the final
> executable. I tried it together with some of the -O options but
> that did not help as well..
>
> any other ideas?
Please don't top-post on gcc lists.
> ps please keep me in CC as I'm not subscribed to the list, thanks
That works for me. You'll have to tell us what you did.
$ gcc a.c b.c -ffunction-sections
$ nm a.out | grep -i ' t '
00000000004005b0 t __do_global_ctors_aux
0000000000400430 t __do_global_dtors_aux
00000000004005a0 T __libc_csu_fini
0000000000400510 T __libc_csu_init
00000000004005e8 T _fini
0000000000400390 T _init
00000000004003e0 T _start
000000000040040c t call_gmon_start
00000000004004a0 t frame_dummy
00000000004004f4 T krava
00000000004004d9 T main
Andrew.
More information about the Gcc-help
mailing list