about summary refs log tree commit diff
path: root/elf/dl-profile.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-25 06:56:40 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-25 06:56:40 +0000
commit128e2b0f0e11f60af8587ed86353d9e8442b1e38 (patch)
tree72aae6513ed711ab0ba823a0ea815cbcc23f0f54 /elf/dl-profile.c
parent6d5728c8ddb28293247a8b5fcb3f520336937b02 (diff)
downloadglibc-128e2b0f0e11f60af8587ed86353d9e8442b1e38.tar.gz
glibc-128e2b0f0e11f60af8587ed86353d9e8442b1e38.tar.xz
glibc-128e2b0f0e11f60af8587ed86353d9e8442b1e38.zip
Update.
	* elf/dl-profile.c (_dl_start_profile): define all variables which
	do not have to be global as local variables.
Diffstat (limited to 'elf/dl-profile.c')
-rw-r--r--elf/dl-profile.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/elf/dl-profile.c b/elf/dl-profile.c
index 1fbada6fb1..023ac1783b 100644
--- a/elf/dl-profile.c
+++ b/elf/dl-profile.c
@@ -155,27 +155,16 @@ struct here_fromstruct
   };
 
 static uint16_t *tos;
-static size_t tossize;
 
 static struct here_fromstruct *froms;
-static size_t fromssize;
 static size_t fromlimit;
 static size_t fromidx;
 
 static uintptr_t lowpc;
-static uintptr_t highpc;
 static size_t textsize;
 static unsigned int hashfraction;
 static unsigned int log_hashfraction;
 
-/* This is the information about the mmaped memory.  */
-static struct gmon_hdr *addr;
-static off_t expected_size;
-
-/* See profil(2) where this is described.  */
-static int s_scale;
-#define SCALE_1_TO_1	0x10000L
-
 
 
 /* Set up profiling data to profile object desribed by MAP.  The output
@@ -194,6 +183,14 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
   struct gmon_hist_hdr hist_hdr;
   char *hist, *cp;
   size_t idx;
+  size_t tossize;
+  size_t fromssize;
+  uintptr_t highpc;
+  struct gmon_hdr *addr = NULL;
+  off_t expected_size;
+  /* See profil(2) where this is described.  */
+  int s_scale;
+#define SCALE_1_TO_1	0x10000L
 
   /* Compute the size of the sections which contain program code.  */
   for (ph = map->l_phdr; ph < &map->l_phdr[map->l_phnum]; ++ph)