Rewrite CommonInputSection as a synthetic input section.
authorRui Ueyama <ruiu@google.com>
Sat, 5 Nov 2016 23:05:47 +0000 (23:05 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 5 Nov 2016 23:05:47 +0000 (23:05 +0000)
commite8a6102fa9ae49813b12871dc2bd48b8523948c2
tree5e95a3bceb018e22eb6e695f7f34f45ab42be6f3
parent9e0297b8bc1eafbd1eb845c740727abab44afa2f
Rewrite CommonInputSection as a synthetic input section.

A CommonInputSection is a section containing all common symbols.
That was an input section but was abstracted in a different way
than the synthetic input sections because it was written before
the synthetic input section was invented.

This patch rewrites CommonInputSection as a synthetic input section
so that it behaves better with other sections.

llvm-svn: 286053
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/LinkerScript.cpp
lld/ELF/OutputSections.cpp
lld/ELF/Symbols.cpp
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/double-bss.s