commit | 964752323d3730230935c309d179067561db07e0 | [log] [tgz] |
---|---|---|
author | Nico Weber <thakis@chromium.org> | Fri Mar 05 11:17:08 2021 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Mar 18 00:33:07 2021 -0700 |
tree | 2e55fe025faef2403d3b400c70bfd1ac09ed4ef5 | |
parent | 3183324984e858e6881817856e45b8cfc6cee15e [diff] |
[mac/lld] Fix scale computation for vector ops in PAGEOFF12 relocations With this, llvm-tblgen no longer tries and fails to allocate 7953 petabyte when it runs during the build. Instead, `check-llvm` with lld/mac as host linker now completes without any failures on an m1 mac. This vector op handling code matches what happens in: - ld64's OutputFile::applyFixUps() in OutputFile.cpp for kindStoreARM64PageOff12 - lld.ld64.darwinold's offset12KindFromInstruction() in lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp for offset12scale16 - RuntimeDyld's decodeAddend() in llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h for ARM64_RELOC_PAGEOFF12 Fixes PR49444. Differential Revision: https://reviews.llvm.org/D98053 GitOrigin-RevId: 210cc0738bbeecf97c9698e2bbe54bbb7d520387
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
.