CubeMx generate those files in different locations, the CMakeLists already dealing with the feature, but do not throw wanings if there are multiple startup files.
Only gcc throws a multiple definition error for multiple variables, but what if the files do not contain these duplicates?