mirror-llvm-project/lld
Martin Storsjö a760d7c070 [LLD] [COFF] Fix handling of immediates in ARM64_SECREL_HIGH12A (#200060)
Just like for PAGEBASE_REL21, the immediate in SECREL_HIGH12A is the
byte offset, not a page offset. The byte level offset is added to the
symbol offset, which only then after that gets shifted right by 12. This
makes the handling of this immediate consistent with what MS link.exe
does.

The existing testcase had a zero immediate in the instruction for this
relocation.

This makes it clear that immediate offsets with SECREL_HIGH12A do work
fine, where the byte level offsets end up carrying over to the upper
bits.

(cherry picked from commit 5c95f6a859)
2026-06-01 07:17:28 +00:00
..
cmake/modules [LLD][CMake][MSVC] Install PDBs alongside executables (#126680) 2025-05-23 12:58:30 -07:00
COFF [LLD] [COFF] Fix handling of immediates in ARM64_SECREL_HIGH12A (#200060) 2026-06-01 07:17:28 +00:00
Common [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (#165119) 2025-10-25 19:54:07 -04:00
docs release/22.x: Add release notes for lld 2026-01-27 07:57:34 +00:00
ELF [ELF] Initialize Symbol fields in the constructor instead of via memset (#198129) 2026-05-26 08:45:47 +00:00
include/lld/Common [lld][BP] Fix duplicate section size measurment (#145384) 2025-06-24 06:31:23 -07:00
MachO [LLD][MachO][NFC] Rename Reloc to Relocation (#175586) 2026-01-13 07:32:36 +01:00
MinGW [LLD] [MinGW] Add the --fat-lto-objects flag (#174962) 2026-01-09 10:24:42 +02:00
test [LLD] [COFF] Fix handling of immediates in ARM64_SECREL_HIGH12A (#200060) 2026-06-01 07:17:28 +00:00
tools/lld
unittests
utils [lld][utils] Remove Python2 compatible imports in benchmark.py 2025-10-16 11:14:12 +00:00
wasm [lld][dtlto] Invert dependency edge from LTO->DTLTO to DTLTO->LTO 2025-12-31 14:10:42 +01:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [CMake] respect LLVMConfig.cmake's LLVM_DEFINITIONS in standalone builds (#138587) 2025-05-22 08:14:13 +03:00
LICENSE.TXT
Maintainers.md [lld] Convert CODE_OWNERS.txt to Maintainers.md (#118084) 2024-12-03 11:44:54 +00:00
README.md

LLVM Linker (lld)

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.

Benchmarking

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.