Relocation of segments in user-defined memory class

I have defined my own memory class, ECODE_APP, in ECODE space. The memory range for this class is specified at link time. I have defined a segment in an assembly module, which I wish to locate at the start of this memory class. I have attempted to use the OFFSET relocation type to achieve this, as in the following directive:

VECTOR SEGMENT 'ECODE_APP' OFFS 0

When I link my code, this segment gets placed at the start of ECODE space, not at the start of my ECODE_APP space. In fact, this segment is placed outside of the memory range I have defined for ECODE_APP. Is my understanding of the OFFSET relocation type incorrect? If so, how else can I ensure that this segment gets located at the start of my ECODE_APP space?

Thanks,
Shane.

More questions in this forum