================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to