commit | eed00513a1677fc548b00611e6a738ef4c18f571 | [log] [tgz] |
---|---|---|
author | Nico Weber <thakis@chromium.org> | Fri Feb 16 07:46:58 2024 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 16 04:50:04 2024 -0800 |
tree | 3cc18da9f80b9d4534af09fe82cbc65e6daac0bb | |
parent | e03a2ef180013c861d9a9c0e473c7abc12c270e1 [diff] |
[lld/MachO] Fix assert on unsorted data-in-code entries (#81758) When the data-in-code entries are in separate sections, they are not guaranteed to be sorted. In particular, 68b1cc36f3df marked some libc++ string functions as noinline, which leads to global ctors involving strings now producing data-in-code sections in __TEXT,__StaticInit, which is why this now happens in practice. Since data-in-code entries are relatively rare and small, just sort them. No observed performance impact. See also crbug.com/41487860 GitOrigin-RevId: 624ea349d7fa3535760a21a05c9998c7978228a4
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
.