Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


lwIP demo/--gc-sections

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.

BR, Madis

[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Meet us at Embedded World. Hall 3A-525.

Hear from Richard Barry at Embedded World. Feb 28, 16:00, Hall 4-428.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS