| commit | de06936f288dabb589ea5979ccaf71655f48ec90 | [log] [tgz] |
|---|---|---|
| author | Rafael Espindola <rafael.espindola@gmail.com> | Mon Jan 25 21:32:04 2016 +0000 |
| committer | Rafael Espindola <rafael.espindola@gmail.com> | Mon Jan 25 21:32:04 2016 +0000 |
| tree | 35fe7c12b6079820fde76f4adc6f41cea8b61e96 | |
| parent | f07db00a656e3bf08c6da4f3e46bae4f82bd56b2 [diff] |
Avoid almost duplication in .dynamic finalize and write. There are a few cases where we have almost duplicated code. This patches fixes the simplest: the finalize and write of dynamic section. Right now they have to have exactly the same structure to decide if a DT_* entry is needed and then to actually write it. We cannot just write it to a std::vector in the first pass since addresses have not been computed yet. llvm-svn: 258723