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

starup *.s file for KEIL

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.

Parents
  • 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.

Reply
  • 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.

Children
No data