[lld] [lld][ELF] improve AMD error message (PR #135082)

Maksim Levental via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 10 21:03:26 PDT 2025


================
@@ -0,0 +1,15 @@
+# RUN: yaml2obj %s -o %t.o
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
+
+# CHECK: ld.lld: error: unknown AMDHSA ABI version: 42
----------------
makslevental wrote:

it's literally in the [amdgpu-abi-version-err.s](https://github.com/llvm/llvm-project/blob/main/lld/test/ELF/amdgpu-abi-version-err.s#L6C10-L6C24) you first suggested:

![Screenshot From 2025-04-11 00-02-40](https://github.com/user-attachments/assets/fefbaf2d-4816-45bc-a906-71df14cff9f3)


https://github.com/llvm/llvm-project/pull/135082


More information about the llvm-commits mailing list