From 7bcaca4384ad7234926730e9e2d90dae67d521bb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 7 May 1999 00:00:48 +0000 Subject: 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. --- elf/link.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elf/link.h') diff --git a/elf/link.h b/elf/link.h index 4abcb49..5e9d7a8 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 */ -- cgit v1.1