[libc-commits] [libc] b5bf100 - [libc] Add RTLD_NEXT + RTLD_DEFAULT (#149909)

via libc-commits libc-commits at lists.llvm.org
Tue Aug 5 10:51:30 PDT 2025


Author: Caslyn Tonelli
Date: 2025-08-05T10:51:28-07:00
New Revision: b5bf1000465c69d647c0eb0f0dc40d03dde17aea

URL: https://github.com/llvm/llvm-project/commit/b5bf1000465c69d647c0eb0f0dc40d03dde17aea
DIFF: https://github.com/llvm/llvm-project/commit/b5bf1000465c69d647c0eb0f0dc40d03dde17aea.diff

LOG: [libc] Add RTLD_NEXT + RTLD_DEFAULT (#149909)

Related to #97920, this patch adds `dlsym` macros `RTLD_NEXT` AND
`RTLD_DEFAULT` to dlfcn.h.

Added: 
    

Modified: 
    libc/include/dlfcn.yaml

Removed: 
    


################################################################################
diff  --git a/libc/include/dlfcn.yaml b/libc/include/dlfcn.yaml
index 28be34dbd95bd..6afeb70b89e76 100644
--- a/libc/include/dlfcn.yaml
+++ b/libc/include/dlfcn.yaml
@@ -29,6 +29,14 @@ macros:
     standards:
       - gnu
     macro_value: "0x01000"
+  - macro_name: RTLD_NEXT
+    standards:
+      - gnu
+    macro_value: "((void *) -1l)"
+  - macro_name: RTLD_DEFAULT
+    standards:
+      - gnu
+    macro_value: "((void *) 0)"
 functions:
   - name: dlclose
     standards:


        


More information about the libc-commits mailing list