If the output section contains only symbol assignments, we copy flags
from the previous sections. Don't set SHF_ALLOC if NonAlloc is true.
We also have to change the type from SHT_NOBITS to SHT_PROGBITS.
In BFD, bfd_elf_get_default_section_type maps non-alloctable sections to SHT_PROGBITS.
Fixes PR38626