Linker script extension inside of a library?


I use stm32duino with lwip extracted from stm32cubemx. It depends on some fumbling with linker script. Is it maybe possible to alter and extend the overall linker script without doing this globally in platformio.ini? From inside of library in the lib/ folder?

With regards

The builder scripts replace the LDSCRIPT variable to set the used linker script.

A library’s extraScript should be able to do the same, I think.

Sorry, one little correction. I would like to use framework-arduinostm32 and not stm32cube framework in my project.

But anyway is it complete replacement of the linker script? Or is it possible to add on? I have seen that linker scripts by itself support kind of “import” and extension. The stm32duino framework make also use of it.