[lld] [PAC][lld][AArch64][ELF] Support signed GOT (PR #96169)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 14:58:28 PDT 2024


================
@@ -655,6 +655,10 @@ void GotSection::addConstant(const Relocation &r) { relocations.push_back(r); }
 void GotSection::addEntry(const Symbol &sym) {
   assert(sym.auxIdx == symAux.size() - 1);
   symAux.back().gotIdx = numEntries++;
+  if (sym.hasFlag(NEEDS_GOT_AUTH)) {
+    assert(config->emachine == EM_AARCH64);
----------------
MaskRay wrote:

This assert and the above assert are not useful.

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


More information about the llvm-commits mailing list