Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add condition in .ld linker file

I want to add conditions in my .ld file if I am in DEBUG mode.  Is there a way similar to C how to acheive this? 

Thank you
Is seems that this is possible but you have to put the linker script explicitly through the GCC preprocessor.
Add in the pre-build steps the right invocation to parse your linker script.

Some info:

Forum Jump:

Users browsing this thread: 1 Guest(s)