aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-07 17:31:11 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-07 17:31:11 +0000
commita3d6fb9b428a51048b31eacd6fe7fad7095ccfd5 (patch)
treead7e9d4bc0778e99c9d7ca427d6e81278b49224a /elf
parent6333c255baf8ad9547c282b47fe5c35a40bca77d (diff)
downloadglibc-a3d6fb9b428a51048b31eacd6fe7fad7095ccfd5.tar
glibc-a3d6fb9b428a51048b31eacd6fe7fad7095ccfd5.tar.gz
glibc-a3d6fb9b428a51048b31eacd6fe7fad7095ccfd5.tar.bz2
glibc-a3d6fb9b428a51048b31eacd6fe7fad7095ccfd5.zip
Update.
1998-07-07 17:28 Ulrich Drepper <drepper@cygnus.com> * elf/dl-profstub.c (_dl_profile_map): Only declare variable here. * elf/dl-support.c: Define it here... * elf/rtld.c: ...and here.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-profstub.c2
-rw-r--r--elf/dl-support.c3
-rw-r--r--elf/rtld.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/elf/dl-profstub.c b/elf/dl-profstub.c
index 9740c6adc4..10db640769 100644
--- a/elf/dl-profstub.c
+++ b/elf/dl-profstub.c
@@ -24,7 +24,7 @@
/* This is the map for the shared object we profile. It is defined here
only because we test for this value being NULL or not. */
-struct link_map *_dl_profile_map;
+extern struct link_map *_dl_profile_map;
void
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 73c90c2f42..418088acfa 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -57,6 +57,9 @@ const char *_dl_profile;
/* Names of shared object for which the RPATHs should be ignored. */
const char *_dl_inhibit_rpath;
+/* The map for the object we will profile. */
+struct link_map *_dl_profile_map;
+
/* This is the address of the last stack address ever used. */
void *__libc_stack_end;
diff --git a/elf/rtld.c b/elf/rtld.c
index bf4a142dba..df5db230f4 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -73,6 +73,7 @@ unsigned long _dl_hwcap;
struct r_search_path *_dl_search_paths;
const char *_dl_profile;
const char *_dl_profile_output;
+struct link_map *_dl_profile_map;
int _dl_debug_libs;
int _dl_debug_impcalls;
int _dl_debug_bindings;