diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-05-07 00:00:48 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-05-07 00:00:48 +0000 |
commit | 7bcaca4384ad7234926730e9e2d90dae67d521bb (patch) | |
tree | 10781234adb41508ed57adb9956b5c6f9e0ac4a3 /elf/link.h | |
parent | 607c351a149e23617e14c8fd583fcb4f4e9d2aeb (diff) | |
download | glibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.zip glibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.tar.gz glibc-7bcaca4384ad7234926730e9e2d90dae67d521bb.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |