[ELF] Finalize .dynamic section at the end
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 2 Feb 2016 09:07:47 +0000 (09:07 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 2 Feb 2016 09:07:47 +0000 (09:07 +0000)
commit40d25f33589a9db7a10f3390d7a792d559bd9f53
tree319755f9bbce3db9b6abe42203374d9fd6eeff63
parent542625eb6e4fe3de1bcb4413af9b65cf81d469d1
[ELF] Finalize .dynamic section at the end

Some dynamic table tags like RELSZ and PLTRELSZ depens on result of
finalizing corresponding relocation sections. Therefore we have to
finalize .dynamic section at the end.

Differential Revision: http://reviews.llvm.org/D16799

llvm-svn: 259478
lld/ELF/Writer.cpp
lld/test/ELF/mips-relocs.s