The following error message is output when the optimizing linkage editor (optlnk) of the RX compiler is used. How can this be avoided?
L3100 (F) Section address overflow out of range
The optimizing linkage editor (optlnk) of the RX compiler outputs the above error message when the allocation address of a section exceeds the memory space of the device.
Note that when the optimization option has been specified at linkage, the above error message will be output even when the linkage result before optimization exceeds the memory space of the device.
When a symbol that is not referenced is linked, try the method below because the error may be prevented with it.
The object files that are registered to a library file should be divided so that there is a file for each function as much as possible (one file per function).
The reason why the above method should be used is if multiple functions are defined in a single object file (.obj) that is registered to a library file, the whole file will be subject to linkage when one function in the file is referenced. Accordingly, functions which are not referenced will also be subject to linkage before optimization.
|C/C++ Compiler Package for RX Family|