aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-06-28 22:44:43 +0200
committerDrahflow <drahflow@gmx.de>2015-06-28 22:44:43 +0200
commite0c7e1f31f1f3e5eb7625318039275650374c25e (patch)
tree4db12d34111b2669bb03b6ebd7a6dc717da788ac
parent1ee96f618c440a53f64a452b1d0f5bd7e95352e7 (diff)
Use GLOB_DAT relocations instead
... which are available on both Linux and FreeBSD outside of GOT.
-rw-r--r--elymas/lib/sys/so.ey4
1 files changed, 2 insertions, 2 deletions
diff --git a/elymas/lib/sys/so.ey b/elymas/lib/sys/so.ey
index 521da85..efb4d3b 100644
--- a/elymas/lib/sys/so.ey
+++ b/elymas/lib/sys/so.ey
@@ -807,11 +807,11 @@
<
[
dlopenAddress rawContentAddress uint64
- 7 uint32 # R_X86_64_JUMP_SLOT
+ 6 uint32 # R_X86_64_GLOB_DAT
1 uint32
0 uint64
dlsymAddress rawContentAddress uint64
- 7 uint32 # R_X86_64_JUMP_SLOT
+ 6 uint32 # R_X86_64_GLOB_DAT
2 uint32
0 uint64
] relocationTable .setData