[libc-commits] [libc] [libc] Enable ifunc support in static startup (PR #182841)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Mon Feb 23 08:57:51 PST 2026


================
@@ -100,29 +103,41 @@ static TLSDescriptor tls;
     case AT_PAGESZ:
       app.page_size = aux_entry.val;
       break;
+    case AT_HWCAP:
+      hwcap = aux_entry.val;
+      break;
+    case AT_HWCAP2:
+      hwcap2 = aux_entry.val;
+      break;
     default:
       break; // TODO: Read other useful entries from the aux vector.
     }
   }
 
-  ptrdiff_t base = 0;
+  intptr_t base = 0;
----------------
kaladron wrote:

"Changed the load bias type for ptrdiff_t to intptr_t to align with IRELATIVE handling, which uses intptr_t for load bias calculations." from the commit message was intended to cover this.  I can make it clearer, though.

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


More information about the libc-commits mailing list