summaryrefslogtreecommitdiff
path: root/ldso/include
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-01-25 02:20:43 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-25 02:20:43 -0600
commit97dc8cb71d96a4bbfda0aa51740433d5da825b6a (patch)
tree664f0cf402d5adec7dc0983fa1755060e5656155 /ldso/include
parent9b723c4ea768f71fc0bc69ba467c6240d18adf35 (diff)
add support for $ORIGIN
This is for example required, used and tested with OpenJDK 7. No regressions found, while running the testsuite with embedded-test.
Diffstat (limited to 'ldso/include')
-rw-r--r--ldso/include/dl-syscall.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 6a89dfffe..ac4c57e4e 100644
--- a/ldso/include/dl-syscall.h
+++ b/ldso/include/dl-syscall.h
@@ -134,14 +134,10 @@ static __always_inline _syscall0(gid_t, _dl_getegid)
#define __NR__dl_getpid __NR_getpid
static __always_inline _syscall0(gid_t, _dl_getpid)
-#if defined __NR_readlinkat && !defined __NR_readlink
+#if defined __NR_readlinkat
# define __NR__dl_readlink __NR_readlinkat
static __always_inline _syscall4(int, _dl_readlink, int, id, const char *, path,
char *, buf, size_t, bufsiz)
-#elif defined __NR_readlink
-# define __NR__dl_readlink __NR_readlink
-static __always_inline _syscall3(int, _dl_readlink, const char *, path, char *, buf,
- size_t, bufsiz)
#endif
#ifdef __NR_pread64