Write the section header string table directly to the output stream.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 29 Apr 2015 20:25:24 +0000 (20:25 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 29 Apr 2015 20:25:24 +0000 (20:25 +0000)
commit88d1f632cf41fede7e0ea0cb5cf662bffa800ce9
treed73a6199ee1de51103a85143f18e399aed13d1ed
parentcf1ba1d8c063d284a71290c890276e0a8a19fc6a
Write the section header string table directly to the output stream.

Instead of accumulating the content in a fragment first, just write it
to the output stream.

Also put it first in the section table, so that we never have to worry
about its index being >= SHN_LORESERVE.

llvm-svn: 236145
14 files changed:
llvm/lib/MC/ELFObjectWriter.cpp
llvm/test/MC/ARM/eh-directive-section-comdat.s
llvm/test/MC/ARM/eh-directive-section-multiple-func.s
llvm/test/MC/ARM/eh-directive-section.s
llvm/test/MC/ARM/eh-directive-text-section.s
llvm/test/MC/ARM/eh-link.s
llvm/test/MC/ELF/comdat-dup-group-name.s
llvm/test/MC/ELF/comdat-reloc.s
llvm/test/MC/ELF/comdat.s
llvm/test/MC/ELF/empty.s
llvm/test/MC/ELF/many-sections-2.s
llvm/test/MC/ELF/many-sections.s
llvm/test/MC/ELF/section-sym.s
llvm/test/MC/ELF/section-unique.s