My program contains a huge table of the form
const unsigned int raw_data[][2] = { ... }
Without the table, everything, including other consts, fits in FLASH using the small data model. Using the large data model, the linker gathers up all the consts and tries to cram them into FLASH2 which isn't big enough. It's trying to put 0x10881 bytes into a 0x10000-byte space, while almost half of FLASH is unused.
Is there a way to tell the linker to put all the garden-variety consts into FLASH and put only the monster const into FLASH2?
Thanx