aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/ldsodefs.h
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2014-03-08 15:12:52 -0800
committerPaul Pluzhnikov <ppluzhnikov@google.com>2014-03-08 15:12:52 -0800
commit502932b7f56f11c3cdb68d7ba00e1d3f91431ed6 (patch)
treee52f15a448b7d3389804367d35b2346a3a14b50a /sysdeps/generic/ldsodefs.h
parent21c2ca10b15f8af6265e8d018ede671e9159cd72 (diff)
downloadglibc-502932b7f56f11c3cdb68d7ba00e1d3f91431ed6.zip
glibc-502932b7f56f11c3cdb68d7ba00e1d3f91431ed6.tar.gz
glibc-502932b7f56f11c3cdb68d7ba00e1d3f91431ed6.tar.bz2
For b/4074041, add EXEC_ORIGIN support. Forward-ported from cl/56955623 and http://cl/59961863.
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r--sysdeps/generic/ldsodefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index a9c2b08..caa5f1d 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -544,6 +544,9 @@ struct rtld_global_ro
/* Location of the binary. */
EXTERN const char *_dl_origin_path;
+ /* Directory where the AT_EXECFN is found. */
+ EXTERN const char *_google_exec_origin_dir;
+
/* -1 if the dynamic linker should honor library load bias,
0 if not, -2 use the default (honor biases for normal
binaries, don't honor for PIEs). */