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
Sec->Flags can have SHF_ALLOC bit on while Sec->NonAlloc is true? If so, it sounds like a contradiction... Maybe we should fix that?