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)
commit58a854d447a61187f3b960be202bf71fc3cc35d2
treeae98ac83572fb0725c1a1e96e81202ba23601ef8
parentb241283669d0646de58df2aed4008603bbeaaf84
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236145 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/MC/ELFObjectWriter.cpp
test/MC/ARM/eh-directive-section-comdat.s
test/MC/ARM/eh-directive-section-multiple-func.s
test/MC/ARM/eh-directive-section.s
test/MC/ARM/eh-directive-text-section.s
test/MC/ARM/eh-link.s
test/MC/ELF/comdat-dup-group-name.s
test/MC/ELF/comdat-reloc.s
test/MC/ELF/comdat.s
test/MC/ELF/empty.s
test/MC/ELF/many-sections-2.s
test/MC/ELF/many-sections.s
test/MC/ELF/section-sym.s
test/MC/ELF/section-unique.s