Repository navigation
Conversation
🪟 Windows x64 Test Results
✅ The build succeeded and all tests passed. |
This was referenced Jun 22, 2026
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
🐧 Linux x64 Test Results
All executed tests passed, but another part of the build failed. Click on a failure below to see the details. compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.ocompiler-rt/lib/tsan/dd/CMakeFiles/RTDD.x86_64.dir/dd_interceptors.cpp.oIf these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the |
Create a separate member for the embedded hybrid object so that it's properly reflected in the archive's symbol map and can be correctly processed by tools unaware of multi-arch object files. Prefix the embedded member name with 'llvm.arm64x/' to avoid name collisions.
…rm64x When -marm64x is used during the assembly phase, construct jobs for both native and EC targets and merge their outputs using llvm-objcopy.
This was referenced Jul 5, 2026
Contributor
Author
|
Merged in referenced PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a draft of an alternative solution for https://discourse.llvm.org/t/rfc-multi-architecture-coff-object-files-for-arm64x/90723 and https://discourse.llvm.org/t/rfc-introduce-a-wholearchive-marker-embedded-in-archives-themselves/90721. Unlike the previous attempt, this approach does not alter the archive format. Instead, it introduces the
.llvm.arm64xsection, similar to how.llvm.ltois used for "fat LTO" object files. This allows aware tools to leverage the additional capability while ensuring unaware tools simply ignore the section.On the Clang side, this is achieved by compiling separately for both the ARM64 and ARM64EC targets and merging the results via an additional llvm-objcopy job. lld-link then selects the correct view of the file depending on the target architecture. Additionally, the archive writer splits the object file into separate members so that they are properly reflected in the symbol map. An advantage of such treatment in archives is that the resulting static library can be used seamlessly by the MSVC linker, as it no longer relies on the
.llvm.arm64xsection.