diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-02-28 06:40:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-02-28 06:40:08 +0000 |
commit | 51f38e87b13f233bdf76bd6d3edaabf4fd9eb126 (patch) | |
tree | f363fd6dc8e929a5f3d1bf45c9ee87b060d87a8d /elf/dl-load.c | |
parent | f027b0f6c2d6761dee8fed61d459b0c301a11b15 (diff) | |
download | glibc-51f38e87b13f233bdf76bd6d3edaabf4fd9eb126.zip glibc-51f38e87b13f233bdf76bd6d3edaabf4fd9eb126.tar.gz glibc-51f38e87b13f233bdf76bd6d3edaabf4fd9eb126.tar.bz2 |
Update.
* elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
l_libname if profiling is enabled [PR libc/2916].
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 48e7cba..2be2083 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1225,6 +1225,13 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp, l->l_dev = st.st_dev; l->l_ino = st.st_ino; + /* When we profile the SONAME might be needed for something else but + loading. Add it right away. */ + if (__builtin_expect (GL(dl_profile) != NULL, 0) + && l->l_info[DT_SONAME] != NULL) + add_name_to_object (l, ((const char *) D_PTR (l, l_info[DT_STRTAB]) + + l->l_info[DT_SONAME]->d_un.d_val)); + return l; } |