aboutsummaryrefslogtreecommitdiff
path: root/elf/link.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-07 00:00:48 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-07 00:00:48 +0000
commit7bcaca4384ad7234926730e9e2d90dae67d521bb (patch)
tree10781234adb41508ed57adb9956b5c6f9e0ac4a3 /elf/link.h
parent607c351a149e23617e14c8fd583fcb4f4e9d2aeb (diff)
downloadglibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.tar
glibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.tar.gz
glibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.tar.bz2
glibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.zip
Update.
* elf/link.h (struct link_map): New field l_phdr_allocated. * elf/dl-load.c (_dl_map_object_from_fd): Don't depend on having the program header being part of any loaded segment. If it is not allocate memory and set l_phdr_allocated flag. * elf/dl-close.c (_dl_close): Free l_phdr if necessary.
Diffstat (limited to 'elf/link.h')
-rw-r--r--elf/link.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/link.h b/elf/link.h
index 4abcb49070..5e9d7a8868 100644
--- a/elf/link.h
+++ b/elf/link.h
@@ -199,6 +199,9 @@ struct link_map
object is the same as one already loaded. */
dev_t l_dev;
ino_t l_ino;
+
+ /* Nonzero if the data structure pointed to by `l_phdr' is allocated. */
+ int l_phdr_allocated;
};
#endif /* link.h */