[llvm-branch-commits] [lld] ELF: Add support for relocating R_AARCH64_FUNCINIT64. (PR #156564)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 9 14:43:47 PDT 2025


https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/156564

>From 5789438b995e099f6e4d486f63cf1fafa25fac80 Mon Sep 17 00:00:00 2001
From: Peter Collingbourne <pcc at google.com>
Date: Tue, 2 Sep 2025 18:44:13 -0700
Subject: [PATCH] Address review comment

Created using spr 1.3.6-beta.1
---
 lld/test/ELF/aarch64-funcinit64-invalid.s | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lld/test/ELF/aarch64-funcinit64-invalid.s b/lld/test/ELF/aarch64-funcinit64-invalid.s
index 2507c07056783..4577db7429773 100644
--- a/lld/test/ELF/aarch64-funcinit64-invalid.s
+++ b/lld/test/ELF/aarch64-funcinit64-invalid.s
@@ -4,11 +4,11 @@
 # RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck --check-prefix=ERR %s
 
 .rodata
-# ERR: relocation R_AARCH64_FUNCINIT64 cannot be used against local symbol
+# ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against local symbol
 .8byte func at FUNCINIT
 
 .data
-# ERR: relocation R_AARCH64_FUNCINIT64 cannot be used against ifunc symbol 'ifunc'
+# ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against ifunc symbol 'ifunc'
 .8byte ifunc at FUNCINIT
 
 .text



More information about the llvm-branch-commits mailing list