Posted by Nobody/Anonymous on January 23, 2007
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 files\yagarto\bin\..\lib\gcc\arm-elf\4.1.1\..\..\..\..\arm-elf\bin\ld.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.
Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.