I was trying to compile in the folder kernel 4.4 using the following commands to reduce kernel size for embedded Linux:
make menuconfig ARCH=arm64
make -j 4 ARCH=arm64 CC=aarch64-linux-gnu-gcc KCFLAGS+="-ffunction-sections -fdata-sections" LDFLAGS+="--gc-section"
It results in an Error as below:
However, if I use commends excluding "--gc -section", it works:
make menuconfig ARCH=arm64
make -j 4 ARCH=arm64 CC=aarch64-linux-gnu-gcc KCFLAGS+="-ffunction-sections -fdata-sections"
I guess the problem is arising when linking subdirectory .o to built-in.o.
Can anyone please help me with this problem? I really appreciate any suggestion you provide!
make menuconfig ARCH=arm64
make -j 4 ARCH=arm64 CC=aarch64-linux-gnu-gcc KCFLAGS+="-ffunction-sections -fdata-sections" LDFLAGS+="--gc-section"
It results in an Error as below:
However, if I use commends excluding "--gc -section", it works:
make menuconfig ARCH=arm64
make -j 4 ARCH=arm64 CC=aarch64-linux-gnu-gcc KCFLAGS+="-ffunction-sections -fdata-sections"
I guess the problem is arising when linking subdirectory .o to built-in.o.
Can anyone please help me with this problem? I really appreciate any suggestion you provide!