Write the section header in the end.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 8 Apr 2015 11:41:24 +0000 (11:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 8 Apr 2015 11:41:24 +0000 (11:41 +0000)
commit541279fdf9f3ff49908b4734a4daaca980a50441
tree60c4068f608820d8233f378b64f651c40b84dcc4
parenta7512d1d4abcb0d182354a20bff9739256711397
Write the section header in the end.

One could make the argument for writing it immediately after the ELF header,
but writing it in the middle of the sections like we were doing just makes
it harder for no reason.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234400 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
lib/MC/ELFObjectWriter.cpp
test/MC/ARM/elf-movt.s
test/MC/ELF/cfi-adjust-cfa-offset.s
test/MC/ELF/cfi-advance-loc2.s
test/MC/ELF/cfi-def-cfa-offset.s
test/MC/ELF/cfi-def-cfa-register.s
test/MC/ELF/cfi-def-cfa.s
test/MC/ELF/cfi-escape.s
test/MC/ELF/cfi-offset.s
test/MC/ELF/cfi-register.s
test/MC/ELF/cfi-rel-offset.s
test/MC/ELF/cfi-rel-offset2.s
test/MC/ELF/cfi-remember.s
test/MC/ELF/cfi-restore.s
test/MC/ELF/cfi-same-value.s
test/MC/ELF/cfi-undefined.s
test/MC/ELF/cfi-window-save.s
test/MC/ELF/cfi-zero-addr-delta.s
test/MC/ELF/cfi.s
test/MC/ELF/relocation-pc.s
test/MC/ELF/rename.s