This patch implemts:
a) Very basic support for PHDRS parsing. Only header name, type, FILEHDR and PHDRS attributes are supported
b) Simple section-to-segment assignment algorithm:
- All segments listed inside PHDRS are created, no matter they contain any section or not
- Linker script can assign section to one or more segments
- New PT_LOAD segment is created for orphaned sections with SHF_ALLOC attribute.
We usually put lld headers before others ones. Move it before #include "lld/Core/LLVM.h" please.