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

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
Reply
#2
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:
http://stackoverflow.com/questions/28837...in-ld-file
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)