diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-02-01 07:49:47 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-02-01 07:49:47 +0000 |
commit | ccdf0cab1d670a05afff42b02c7583ccd23abde9 (patch) | |
tree | 728f8fc2797a2de2b94a0481b3af4c462e65fc7a /elf/dl-minimal.c | |
parent | 5688da55372193e5941f0240e6ea759d28483970 (diff) | |
download | glibc-ccdf0cab1d670a05afff42b02c7583ccd23abde9.zip glibc-ccdf0cab1d670a05afff42b02c7583ccd23abde9.tar.gz glibc-ccdf0cab1d670a05afff42b02c7583ccd23abde9.tar.bz2 |
Update.
* elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
* elf/dl-reloc.c: Pretty printing.
* sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
procinfo-related variables in rtld_global struct.
* elf/dl-support.c: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/i386/i686/Makefile: Likewise.
* sysdeps/i386/i686/hp-timing.c: Likewise.
* sysdeps/i386/i686/hp-timing.h: Likewise.
* sysdeps/ia64/Makefile: Likewise.
* sysdeps/ia64/hp-timing.c: Likewise.
* sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
* sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
* sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
* sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
* sysdeps/x86_64/Makefile: Likewise.
Diffstat (limited to 'elf/dl-minimal.c')
-rw-r--r-- | elf/dl-minimal.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c index 12e9d69..001fc6d 100644 --- a/elf/dl-minimal.c +++ b/elf/dl-minimal.c @@ -268,3 +268,26 @@ __strtoul_internal (const char *nptr, char **endptr, int base, int group) *endptr = (char *) nptr; return result * sign; } + + +#if HP_TIMING_AVAIL && ULONG_MAX <= 4294967295UL +/* We need this function to print the cycle count. On 64-bit machines the + _itoa_word function should be used. */ +char * +_itoa (value, buflim, base, upper_case) + unsigned long long int value; + char *buflim; + unsigned int base; + int upper_case; +{ + char *bp = buflim; + + assert (base == 10); + + do + *--bp = '0' + value % 10; + while ((value /= 10) != 0); + + return bp; +} +#endif |