This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Locating ?C_INITSEG at end of code

I am using the NOSORTSIZE directive with BL51 and I have a need to locate the initialization segment ?C_INITSEG after all of my other code segments.

I have noticed that when the NOSORTSIZE directive is used, the ?C_INITSEG segment is placed after the functions of the first object file fed to the linker, no matter where startup.a51 and init.a51 are located in the list of object files (the only exception is if they are placed first, in which case ?C_INITSEG follows ?C_C51STARTUP).

Does anyone know a way to place ?C_INITSEG at the end of code without placing it at a fixed location?

FYI: I am using BL51 v4.03 and C51 v6.10.

Thanks in advance!

0