[llvm-branch-commits] [lld] [llvm] [RFC][AMDGPU][lld] Add object linking support (PR #206787)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 2 00:15:00 PDT 2026
================
@@ -3544,6 +3548,17 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
if (ctx.arg.emachine == EM_RISCV)
mergeRISCVAttributesSections(ctx);
+ // Resolve AMDGPU link-time LDS and resource usage before relocation
+ // resolution.
+ if (ctx.arg.emachine == EM_AMDGPU) {
+ if constexpr (ELFT::Endianness == endianness::little) {
+ resolveAMDGPUObjectLinking<ELFT>(ctx);
+ } else {
+ Err(ctx) << "AMDGPU only supports little-endian ELF";
----------------
arsenm wrote:
Untested error?
https://github.com/llvm/llvm-project/pull/206787
More information about the llvm-branch-commits
mailing list