We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I habe built a project with µVision2 and generated a library (LIB file). I have imported this LIB into another µVision2 project. However, the link order of the imported modules within the LIB is now changed compared to the original order of the modules. This is a problem since I have to keep not only the module order, but also the init_segment should be kept invariant. How can be kept the order of the included input module from the LIB? (I have used LIB51 LIBRARY MANAGER V4.24)
Normally a linker is free to locate segments as it pleases. If the order is important, you can use the SEGMENTS linker directive to specify the link order and/or absolute memory locations for individual segments.