diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-02-09 17:26:38 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-02-09 17:26:38 +0100 |
commit | ba683182f43036fc52f1087ada237e1d07854b0e (patch) | |
tree | 2b2b1a43af8c7d83385a45fd671175bbf1cf5972 /hurd/translator/procfs | |
parent | 8720ae28261550e8b7dd3f2d89e72a194aa9e712 (diff) |
open_issues/llvm: llvm 0a109de14d0ced95d99b9ec60d4ef9479d6404d3 (2013-02-08), clang 4cdb7414a1862270bbf8ff2c345aea879a64a116 (2013-02-08), compiler-rt ed83584256249ee2c474fb18abf7df6aa73019b0 (2013-02-08), test-suite d1212efdb685151165a48d0f89cf3d40154468bc (2013-02-08)
Diffstat (limited to 'hurd/translator/procfs')
-rw-r--r-- | hurd/translator/procfs/jkoenig/discussion.mdwn | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hurd/translator/procfs/jkoenig/discussion.mdwn b/hurd/translator/procfs/jkoenig/discussion.mdwn index e71ea02b..aded4225 100644 --- a/hurd/translator/procfs/jkoenig/discussion.mdwn +++ b/hurd/translator/procfs/jkoenig/discussion.mdwn @@ -218,6 +218,20 @@ Needed by glibc's `pldd` tool (commit [[!message-id "alpine.LFD.2.02.1110111111260.2016@akari"]]. Needed by glibc's `stdlib/tst-secure-getenv.c`. +Is it generally possible to use something like the following instead? +Disadvantage is that every program using this needs to be patched. + + #include <dlfcn.h> + [...] + Dl_info DLInfo; + int err = dladdr(&main, &DLInfo); + if (err == 0) + [...] + /* Pathname of shared object that contains address: DLInfo.dli_fname. */ + /* Filter it through realpath. */ + +This is used in `[LLVM]/lib/Support/Unix/Path.inc`. + # `/proc/[PID]/fd/` |