On Jun 23, 2016, at 5:21 AM, Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com> wrote: > > 2. Even if (1) is fixed, the custom section (.foo) is not mapped to > any output section or region in the linker script. The linker can > error out only if the contents overflow a region.
If the segment isn't loaded, then it's size can't matter any? If it is loaded, and it goes onto a machine with a finite size, then the loader can (should) complain if it can't fit, and/or the linker can know that size, as it is a fixed finite size. The size would usually be part of a board support package and can include a memory segment with that size.