chiark
/
gitweb
/
~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
988e9ce
)
Update README section about dlfcn.h
author
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 23 Apr 2016 21:50:20 +0000
(17:50 -0400)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 23 Apr 2016 21:50:20 +0000
(17:50 -0400)
README.md
patch
|
blob
|
blame
|
history
diff --git
a/README.md
b/README.md
index a750b1731ac075a424685e7c9c494fd84d7cabbb..971d589c6c3bf8e71347297069e61f7fc8c57525 100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-125,16
+125,17
@@
contains these and may be used by all packages.
dlopen() and RTLD_* flags
=================================
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
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)
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
RPATH, LD_LIBRARY_PATH AND RUNPATH