lwIP demo/–gc-sections
Hi!
Im struggling with my toolchain.
In previous projects I have been using –gc-section for linker and -ffuction-sections and -fdada-sections for compiler. It worked nice. But since I had problems with debugger/eclipse/cdt etc. interoperation I switched to yagarto precompiled toolchain/ide/openocd set. And I get the following error while comililing freertos/lwip example:
c:program filesyagartobin\..libgccarm-elf4.1.1\..\..\..\..arm-elfbinld.exe: internal error ../../binutils-2.17/ld/ldlang.c 4275
collect2: ld returned 1 exit status
make: *** [rtosdemo.elf] Error 1
My linker flags are the following:
LDFLAGS = $(MCFLAGS) -mthumb-interwork -nostartfiles -T$(LDSCRIPT) -Wl,-Map=$(PROJECT).map,–no-warn-mismatch,–gc-sections
-ffunction-sections and -fdata-sections seem to work as map file shows .text.xxxx etc. sections, as it should. But I guess –gc-sections should work without these other options too, only it does not do anything then.
If somebody could give me an advice, I’ll be appreciated.
BR, Madis