commit | 16c20f7c9679465df4c98cd1a4bc152af09b6d33 | [log] [tgz] |
---|---|---|
author | Martin Storsjo <martin@martin.st> | Tue Nov 27 20:48:09 2018 +0000 |
committer | Martin Storsjo <martin@martin.st> | Tue Nov 27 20:48:09 2018 +0000 |
tree | a30de2bd827d83748b2ca8218f8342386d39b889 | |
parent | 0929b9c850fad1aaa21dff0c041c8498ada59360 [diff] |
[COFF] Remove empty sections before calculating the size of section headers The number of sections is used in assignAddresses (in finalizeAddresses) and the space for all sections is permanent from that point on, even if we later decide we won't write some of them. The VirtualSize field also gets calculated in assignAddresses, so we need to manually check whether the section is empty here instead. Differential Revision: https://reviews.llvm.org/D54495 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@347704 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.