Compiler Pragmas to allocate object to a section
Asked by
Deepa Ballari
Hello,
In my application, I want to allocate objects to a particular section using GNU tools. Something like,
#pragma data_seg( "MY_DATA_FOO" )
__declspec(
Compiler should create MY_DATA_FOO section and place foo1 in it.
Does GNU compiler support this and if yes what's the equivalent syntax?
Thanks,
Deepa
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Deepa Ballari for more information if necessary.
To post a message you must log in.