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?
No problems, I found it ...
#pragma codeseg MySeg=0xaddr
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.