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 ]    [ Privacy ]    [ Sitemap ]    [ ]

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

Latest News

Version 10.1.0 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

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

Xilinx Microblaze and Zynq partner