Code: Select all
const std::map<const std::string, const std::string> dtc_lookup = {
{"P0010","-A- Camshaft Pos. Actuator Circ. Bank 1 Malfunction"},
...
{"P1866","Data Bus Powertrain Missing messages"}
};
If I reduce the number of items to 600 it works. The size of the include file is about 43KB, so reducing it might coincide with about 32KB of data perhaps.
I've broken them up by the first digit after the P into two std::map, but would like to understand why the relocation fails and if there is a compiler option or parameter I can attach to the std::map that indicates to the compiler/linker how it can deal with it better.