commit | 6a5ba61eed18ca327964de975a992aaa51162b67 | [log] [tgz] |
---|---|---|
author | Fangrui Song <i@maskray.me> | Thu Feb 01 21:20:27 2024 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Feb 01 21:27:04 2024 -0800 |
tree | ffed42b12b66c0fa1eb30c975e0cefeb5a62b07a | |
parent | 7fb8937cbf7b4ec1628f216dd99cc9e1458672a9 [diff] |
[ELF] Fix compareSections assertion failure when OutputDescs in sectionCommands are non-contiguous In a `--defsym y0=0 -T a.lds` link where a.lds contains only INSERT commands, the `script->sectionCommands` layout may be: ``` orphan sections SymbolAssignment due to --defsym sections created by INSERT commands ``` The `OutputDesc` objects are not contiguous in sortInputSections, and `compareSections` will be called with a SymbolAssignment argument, leading to an assertion failure. GitOrigin-RevId: dee8786f70a3d62b639113343fa36ef55bdbad63
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
.