diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-11 08:57:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-11 08:57:41 +0000 |
commit | 67c94753e3f2ec372483cd41fbcc1bcdc04053fb (patch) | |
tree | 253f8967708078bd2fc0f24dcdae28d14f47e668 /sysdeps/unix/sysv/linux | |
parent | 6ae9b99ef23691204c5e1e8128425f1a78465a4f (diff) | |
download | glibc-67c94753e3f2ec372483cd41fbcc1bcdc04053fb.tar.gz glibc-67c94753e3f2ec372483cd41fbcc1bcdc04053fb.tar.xz glibc-67c94753e3f2ec372483cd41fbcc1bcdc04053fb.zip |
Update.
2001-08-11 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c (ptmalloc_init): Don't call getenv five times. Instead use new function next_env_entry which iterates over the environment once. * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Only set _dl_profile_map for the right object. * elf/dl-reloc.c (_dl_relocate_object): Allocate l_reloc_result only if consider_profiling is != 0, not if _dl_profile != NULL. * sysdeps/generic/dl-environ.c (_dl_next_ld_env_entry): Optimize a bit. Now returns pointer to first character set "LD_". * elf/rtld.c (process_envvars): Adjust for change above. * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Likewise. * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Likewise. 2001-08-10 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c (grow_heap): Use mmap() rather than mprotect() to allocate new memory, for better performance with Linux-2.4.x.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/dl-librecon.h | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/dl-librecon.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-librecon.h b/sysdeps/unix/sysv/linux/dl-librecon.h index b1052972f3..5c34d00edb 100644 --- a/sysdeps/unix/sysv/linux/dl-librecon.h +++ b/sysdeps/unix/sysv/linux/dl-librecon.h @@ -24,10 +24,10 @@ /* Recognizing extra environment variables. */ #define EXTRA_LD_ENVVARS \ case 13: \ - if (memcmp (&envline[3], "ASSUME_KERNEL", 13) == 0) \ + if (memcmp (envline, "ASSUME_KERNEL", 13) == 0) \ { \ unsigned long int i, j, osversion = 0; \ - char *p = &envline[17], *q; \ + char *p = &envline[14], *q; \ \ for (i = 0; i < 3; i++, p = q + 1) \ { \ diff --git a/sysdeps/unix/sysv/linux/i386/dl-librecon.h b/sysdeps/unix/sysv/linux/i386/dl-librecon.h index 627eecf62d..acff7fc14f 100644 --- a/sysdeps/unix/sysv/linux/i386/dl-librecon.h +++ b/sysdeps/unix/sysv/linux/i386/dl-librecon.h @@ -49,10 +49,10 @@ /* Recognizing extra environment variables. */ #define EXTRA_LD_ENVVARS \ case 13: \ - if (memcmp (&envline[3], "ASSUME_KERNEL", 13) == 0) \ + if (memcmp (envline, "ASSUME_KERNEL", 13) == 0) \ { \ unsigned long int i, j, osversion = 0; \ - char *p = &envline[17], *q; \ + char *p = &envline[14], *q; \ \ for (i = 0; i < 3; i++, p = q + 1) \ { \ @@ -72,9 +72,9 @@ } \ \ case 15: \ - if (memcmp (&envline[3], "LIBRARY_VERSION", 15) == 0) \ + if (memcmp (envline, "LIBRARY_VERSION", 15) == 0) \ { \ - _dl_correct_cache_id = envline[19] == '5' ? 2 : 3; \ + _dl_correct_cache_id = envline[16] == '5' ? 2 : 3; \ break; \ } |