commit | 6f914a7fcca26d3ba4e09349d3210726f70a18b4 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Thu Sep 05 05:30:24 2019 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Thu Sep 05 05:30:24 2019 +0000 |
tree | f0d024f572b7275935eb38b7421cdd368a744e25 | |
parent | 15e93788c5fa4b098dde2dcc5ecc457cc020b689 [diff] |
Align output segments correctly Previously, segments were aligned according to their first section's alignment requirements. That was not correct, but segments are also aligned to a page boundary, and a page boundary is usually much larger than a section alignment requirement, so no one noticed this bug before. Now, lld has --nmagic option which sets maxPageSize to 1 to effectively disable page alignment, which reveals the issue. Fixes https://bugs.llvm.org/show_bug.cgi?id=43212 Differential Revision: https://reviews.llvm.org/D67152 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@371013 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.