Compiling this code with CFLAGS="-ffunction-sections -fdata-sections" and LDFLAGS="-Wl,--as-needed -Wl,--gc-sections -Wl,--print-gc-sections" was giving me the following messages: /usr/bin/ld: Removing unused section '.text._on_key_down' in file 'elementary_testql-test_focus.o' /usr/bin/ld: Removing unused section '.text.my_show' in file 'elementary_testql-test_focus.o' /usr/bin/ld: Removing unused section '.rodata' in file 'elementary_testql-test_focus.o' /usr/bin/ld: Removing unused section '.text.test_focus' in file 'elementary_testql-test_focus.o' The issue was the missing guards. SVN revision: 54600 |
||
---|---|---|
legacy/elementary |