strange, your syntax looks ok.
What I would check:
- how does the #pragma look like after preprocessing. #define's can cause many surprises...
- does it work if you use another name at those two places (#pragma & prm)? Same reason than for the first suggestion, just to check for some name collisions.
- the section containing the object refered to with INIT is special (default _Startup)
Is this here the case? The content of this section ends up in ".init".
- I would actually decode the object file, but its content may be hard to decipher if you are not familiar with ELF. With "-e -ed -d" decoder/importer options everything is displayed (usually too much...)
- this is about code, not constants, correct? (use #pragma CONST_SEG name for constants).
Well, these are about all ideas I have. If they dont help, please show us a complete sample.
Daniel