System initialization
It is likely that you need to adapt the system initialization. For example, your application might need to initialize memory-mapped special function registers (SFRs), or omit the default initialization of data sections performed by the system startup code.
You can do this by implementing your own version of the routine __low_level_init, which is called from the cstartup.s file before the data sections are initialized. Modifying the cstartup.s file directly should be avoided.
The code for handling system startup is located in the source files cstartup.s and low_level_init.c, located in the rl78\src\lib directory.
Note that normally, you do not need to customize cexit.s.
Note
Regardless of whether you implement your own version of __low_level_init or the file cstartup.s, you do not have to rebuild the library.