[lld][ELF] Emit note sections

Emit note sections if the input contains a note section.

Also emit a note segment.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189896 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Ignore options starting with -?

The compiler is allowed to add a linker option starting with -?<name> to
.drectve section. If the linker can interpret -<name>, it's processed as if
there's no question mark there. If not, such option is silently ignored.

This is a COFF's feature to allow the compiler to emit new linker options
while keeping compatibility with older linkers.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189897 91177308-0d34-0410-b5e6-96231b3b80d8