Hello.
Months ago I generated a binary with some source files of C. The binary had a size of 48KB. Now I was going to make a change but, without modifying anything, when compiling I get a 2.9MB binary. I don't remember having changed anything, and I don't know why the binary has a different size.
Using lddtree command I get for the 48KB application
lddtree -a old_app
old_app => ./old_app (interpreter => /lib/ld-uClibc.so.0)
libm.so.0 => not found libgcc_s.so.1 => not found
libc.so.0 => not found
and for the 2.9MB application
lddtree -a new_app
new_app => ./new_app (interpreter => none)
The path that I using are:
PATH=$PATH:/RUT9XX_R_GPL/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin
export PATH
STAGING_DIR=/RUT9XX_R_GPL/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2
export STAGING_DIR
And I've compiling with
mips-openwrt-linux-gcc main.c -o app