aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2013-11-18 15:11:55 -0800
committerPaul Pluzhnikov <ppluzhnikov@google.com>2013-11-18 15:11:55 -0800
commit5c3499508eca3929635ddce90749bfc8ca7d0763 (patch)
tree2efd7d960dc7dcedcd1245a861475b8bf95c65fb /elf/rtld.c
parent038b56f3dac74dcd8988e00092a21315a6b66c41 (diff)
downloadglibc-5c3499508eca3929635ddce90749bfc8ca7d0763.zip
glibc-5c3499508eca3929635ddce90749bfc8ca7d0763.tar.gz
glibc-5c3499508eca3929635ddce90749bfc8ca7d0763.tar.bz2
Adjust AT_EXECFN when using explicit loader invocation.
2013-11-18 Paul Pluzhnikov <ppluzhnikov@google.com> * elf/Makefile (tst-auxv): New test. * elf/tst-auxv.c: New * elf/rtld.c (dl_main): Adjust AT_EXECFN
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index c5a6538..3d207a3 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1118,6 +1118,9 @@ of this helper program; chances are you did not intend to run this program.\n\
case AT_ENTRY:
av->a_un.a_val = *user_entry;
break;
+ case AT_EXECFN:
+ av->a_un.a_val = (uintptr_t) _dl_argv[0];
+ break;
}
#endif
}