This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to make executable dynamic?

Hi all,

I want "--relocatable --dynamic --ram_model -o" on my makefile.. but when i build I get only "--relocatable --ram_model -o".

How to get my executable dynamic?

CCS v5.0.23

CGT 7.2.1

Regards,

Sohal

  • A good place to start is the wiki article http://processors.wiki.ti.com/index.php/C6000_Dynamic_Linking .

    Thanks and regards,

    -George

  • Thanks Georgem for the reply...
    But I cant figure out how to make my executable dynamic?

    Regards,

    Sohal 

  • I'm sorry, but I'm not sure what you are getting at.  What is the overall problem you are trying to solve?  What exactly is it about your system that needs to be dynamic, and why?

    Thanks and regards,

    -George

  • Hi Georgem,

    I've created a CCS project. It was built correctly with no errors and the .out was generated. 

    But the symbol for the .out seemed like this (010) rather than the "play" like symbol.

    I was not able to load this executable to the cores using CCS. When I compared my project with the MCSDK Image Processing Demo I could find that --dynamic flag is missing in my makefile.

    In my makefile there's a portion like "--reread_libs --relocatable --ram_model -o "image_processing_evm6678l_master.out" $(ORDERED_OBJS)".

    In MCSDK Image Processing Demo makefile "--reread_libs --relocatable --ram_model --dynamic -o "image_processing_evmc6678l_slave.out" $(ORDERED_OBJS)"

    When I hardcode --dynamic flag and amke the makefile readonly its working otherwise not. So How could I make my executable dynamic without hardcoding????

    Please help.




    Regards,

    Sohal 

  • Mohamed Sohal said:
    When I hardcode --dynamic flag and amke the makefile readonly its working otherwise not. So How could I make my executable dynamic without hardcoding????

    If you're asking specifically how to add the --dynamic option to your project, you should be able to enable the option under Linker options (similar to the screenshot below). Do you not see it there?

  • Hi AartiG,

    Thanks for the reply. I'm using CCSv5.0.23. The following is the properties window which does not have a Dynamic Linking Support Options tab.

    Can you please help on this?


    Regards,

    Sohal 

  • Sohal,

    I don't havea CCS 5.0.x currently installed to double check, but if the option is not available under any of the linker options, you should be able to manually add the option to the build command line. In the command-line pattern, add the --dynamic option after ${flags}.

    I would also recommend updating to CCS 5.1.x as soon as possible. This will not be an issue in 5.1 and also there are no updates planned for 5.0.x and 5.1.x is the recommended update path for that version.

  • Thanks AartiG :)... That solved my problem.

    Regards,

    Sohal