[lld] handle typeZeroFill atoms in ELF/Native/YAML
authorShankar Easwaran <shankare@codeaurora.org>
Fri, 23 Aug 2013 20:03:21 +0000 (20:03 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Fri, 23 Aug 2013 20:03:21 +0000 (20:03 +0000)
commitd17ba4bd4d0dac68d62e64c029be2a3fdd01fe75
tree8acaf08a1f62391ce22c16ec7616cb2867f1b25b
parent2f57df2aa973e09a35aea1fcf18f4e415489dc78
[lld] handle typeZeroFill atoms in ELF/Native/YAML

BSS atoms dont take any file space in the Input file. They are associated
with a contentType(typeZeroFill). Similiar zero fill types also exist which
have the same meaning in terms of occupying file space in the Input.

These atoms have to be handled seperately when writing to the
lld's intermediate file or the lld test infrastructure.

Also adds a test.

llvm-svn: 189136
lld/include/lld/Core/DefinedAtom.h
lld/lib/ReaderWriter/ELF/File.h
lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
lld/lib/ReaderWriter/ELF/SectionChunks.h
lld/lib/ReaderWriter/Native/ReaderNative.cpp
lld/lib/ReaderWriter/Native/WriterNative.cpp
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
lld/test/elf/X86_64/Inputs/largebss.c [new file with mode: 0644]
lld/test/elf/X86_64/Inputs/largebss.o [new file with mode: 0644]
lld/test/elf/X86_64/largebss.test [new file with mode: 0644]
lld/test/elf/quickdata.test