From 29db5b35428642183f4beb9578709aa0cdd6d38d Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 23 Apr 2016 17:50:20 -0400 Subject: [PATCH] Update README section about dlfcn.h --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a750b173..971d589c 100644 --- a/README.md +++ b/README.md @@ -125,16 +125,17 @@ contains these and may be used by all packages. dlopen() and RTLD_* flags ================================= -<dlfcn.h> declares +<dlfcn.h> originally declares enum { RTLD_NOW=0, RTLD_LAZY=1, RTLD_LOCAL=0, RTLD_GLOBAL=2, RTLD_NOLOAD=4}; // 32-bit enum { RTLD_NOW=2, RTLD_LAZY=1, RTLD_LOCAL=0, RTLD_GLOBAL=0x00100, RTLD_NOLOAD=4}; // 64-bit These differs from glibc ones in that -1. They are not preprocessor #define:s so cannot be checked for with #ifdef RTLD_GLOBAL (dln.c in ruby does this) +1. They are not preprocessor #define:s so cannot be checked for with `#ifdef RTLD_GLOBAL`. Termux patches this to + #define values for compatibility with several packages. 2. They differ in value from glibc ones, so cannot be hardcoded in files (DLFCN.py in python does this) -3. They are missing some values (RTLD_BINDING_MASK, RTLD_NOLOAD, ...) +3. They are missing some values (`RTLD_BINDING_MASK`, `RTLD_NOLOAD`, ...) RPATH, LD_LIBRARY_PATH AND RUNPATH -- 2.11.0