Change Link Order

Last modified by Microchip on 2024/06/24 06:34

At the present time, there is no mechanism to directly change the link order of files. However, there is a workaround that involves creating logical folders inside the Object Files or Library Files folders.

  1. Create as many logical folders under Linker Files or Object Files as you have files with link order dependencies.
  2. Give these folders identical names, but add an incremental digit to the end. For example: MyFolder1, MyFolder2, etc.
  3. Place files with link order dependencies inside the folder with the number corresponding to the desired link order position. The linker will link items inside the folders in increasing order of the digits in the logical folder names.

This section will be updated when a more elegant solution is implemented.