Skip to main content
Visitor II
September 14, 2024
Question

Deprecated behavior of the linker

  • September 14, 2024
  • 2 replies
  • 1615 views

Hello ST community,

 

I have cloned a project developed by a colleague of mine using STM32WBA52 MCU.

When I hit build for the project I got this error "Note: This behavior is deprecated and will be removed in future version of the linker"

I updated STM32CubeIDE to 1.16, but I still get the same error, whereas, the project was initially developed using older version of CubeIDE

 

Did anyone get into this issue?

Any assistance would be appreciated

Thanks

    2 replies

    Tesla DeLorean
    Guru
    September 14, 2024

    Updating probably isn't the way to out run things they plan on removing in the future..

    Look at options and metadata reported in the build process, likely a setting or behavior that is being rationalized or breaks something new.

    Provide the whole build output, makefiles or IOC

    Perhaps look in Linker Script. 

    Look if there's a way to regenerate or import the old project. Or make a fresh one and merge back in your configuration. 

    Going to be hard to guess without some more specificity..

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Explorer
    June 18, 2025

    In case anyone still has this issue, I came across an obscure "workaround" from https://wiki.st.com/stm32mcu/wiki/STM32CubeIDE:STM32CubeIDE_errata_1.18.x. In your Linker Settings (Project > Properties > C/C++ Build > Settings > MCU/MPU GCC Linker > Miscellaneous > Other Flags) add the following:

    -z noexecstack

    That seems to have removed the error/warning for me.