diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-06 09:07:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-06 09:07:56 +0000 |
commit | 53bfdc1cf6f9360dfc5eb95c906159f949a8f83a (patch) | |
tree | 8009e94c553c7170b0f8b94e407d6051a8a5bc1f /elf/dl-support.c | |
parent | 154d10bdf1984f4fe28f898e07bc25c5367f443e (diff) | |
download | glibc-53bfdc1cf6f9360dfc5eb95c906159f949a8f83a.tar.gz glibc-53bfdc1cf6f9360dfc5eb95c906159f949a8f83a.tar.xz glibc-53bfdc1cf6f9360dfc5eb95c906159f949a8f83a.zip |
Update.
2004-03-06 Ulrich Drepper <drepper@redhat.com> * elf/dl-open.c: No need to pass any parameter to _dl_start_profile. They are the same in both places. * elf/dl-profile.c: Likewise. * elf/rtld.c: Likewise. * sysdeps/generic/ldsodefs.h: Likewise. * elf/dl-support.c: Define _dl_profile_output variable. Initialize it.
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r-- | elf/dl-support.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c index 44335e8a8e..0b2d0243de 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -49,6 +49,7 @@ int _dl_verbose; /* We never do profiling. */ const char *_dl_profile; +const char *_dl_profile_output; /* Names of shared object for which the RUNPATHs and RPATHs should be ignored. */ @@ -247,6 +248,11 @@ _dl_non_dynamic_init (void) _dl_dynamic_weak = *(getenv ("LD_DYNAMIC_WEAK") ?: "") == '\0'; + _dl_profile_output = getenv ("LD_PROFILE_OUTPUT"); + if (_dl_profile_output == NULL || _dl_profile_output[0] == '\0') + _dl_profile_output + = &"/var/tmp\0/var/profile"[__libc_enable_secure ? 9 : 0]; + if (__libc_enable_secure) { static const char *unsecure_envvars[] = |