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.
The startup *.s file is placed in a library project, then the app project link this library. When I compile, error: error: L6236E: No section matches selector - no section to be FIRST/LAST.
but place *.s file in app project, it's OK.
Does it really not find it, or does it simply discard it because it has no symbol dependency requiring it's presence?
A library is a collection of objects, the linker is free to pick and choose which it includes as it navigates the dependency tree. That it doesn't include the object you want suggests that it can get closure without it. When you grasp this, and the appropriateness of dumping everything into a library you might be able to make some progress.