Skip to main content
Senior
Oct 19, 2025 8:20 AM UTC
Solved

Linker Garbage Collection Notes in CubeIDE for Target MCU F767

Hi

Recently, when I import an LWIP example project from MDK to CubeIDE, I get the following note message::

     "note: the message above does not take linker garbage collection into account"

Chao_1-1760861480860.png

I have 2 questions against these notes:

1. Do these notes have any negative affects on generatiing correct binary of the project ?

2. If they don't have any negative affects, then how to avoid these annoying messages ?

Thanks

Chao

This topic has been closed for replies.
Souhaib MAZHOUDBest answer
ST Technical Moderator
Oct 20, 2025 9:20 AM UTC

Hello @Chao 

I assume that this issue has been answered here: Solved: STM32CubeIDE 1.13.0 problem - Page 3 - STMicroelectronics Community "this is ‘just’ a warning, and the linker is able to generate a proper ELF file. As long as your application does not use read/write/close/lseek (which should be the case for a bare metal application), your application will run properly."

KR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

2 replies

Souhaib MAZHOUDBest answer
ST Technical Moderator
Oct 20, 2025 9:20 AM UTC

Hello @Chao 

I assume that this issue has been answered here: Solved: STM32CubeIDE 1.13.0 problem - Page 3 - STMicroelectronics Community "this is ‘just’ a warning, and the linker is able to generate a proper ELF file. As long as your application does not use read/write/close/lseek (which should be the case for a bare metal application), your application will run properly."

KR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
ChaoAuthor
Senior
Oct 25, 2025 7:58 AM UTC

Thank you so much! I found the syscall.c is missing in my project.

Chao