new pragma constseg (>v2.5.1is only for data?

  • a_wombat

    a_wombat - 2005-08-17

    Maarten recently disclosed a new #pragma that allows the placement of INITIALSED data at a specific address by link with the -Wl-bsegname=0xaddr .

    This works well for initialised data, but does not work for code.

    Is there a way I can position code to a specific address? (apart from using assember, or hand modifying the C derived asm)

    Could this new option be made more general, so that the very same pragma would allow code positioning as well?

    • a_wombat

      a_wombat - 2005-08-17

      No problems, I found it ...

      #pragma codeseg MySeg=0xaddr


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks