[ELF] - Support COPY, INFO, OVERLAY output sections attributes.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 16 Feb 2018 10:42:58 +0000 (10:42 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 16 Feb 2018 10:42:58 +0000 (10:42 +0000)
commit1c08e9f5cee04c0164a5f8408e6854ce64fe3d29
tree92492c4afc3c9945c9e461febe70f3200239787b
parent53270d0fa61eb95a3f948dbcf5d65373abc86648
[ELF] - Support COPY, INFO, OVERLAY output sections attributes.

This is PR36298.

(COPY), (INFO), (OVERLAY) all have the same effect:
section should be marked as non-allocatable.

(https://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf,
3.6.8.1 Output Section Type)

Differential revision: https://reviews.llvm.org/D43071

llvm-svn: 325331
lld/ELF/LinkerScript.cpp
lld/ELF/OutputSections.h
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/info-section-type.s [new file with mode: 0644]