aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-03-20 14:50:57 +0000
committerRoland McGrath <roland@gnu.org>1996-03-20 14:50:57 +0000
commit948c3e72ecaa4e8dfce47dcbc62b9723c9946155 (patch)
treefc42e920de8cebf0f84485b2f060730b790fa901 /elf/dl-load.c
parent213afb94b631fef0e6f24a2c61f5e31de77b62f5 (diff)
downloadglibc-948c3e72ecaa4e8dfce47dcbc62b9723c9946155.tar
glibc-948c3e72ecaa4e8dfce47dcbc62b9723c9946155.tar.gz
glibc-948c3e72ecaa4e8dfce47dcbc62b9723c9946155.tar.bz2
glibc-948c3e72ecaa4e8dfce47dcbc62b9723c9946155.zip
Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not lt_executable, then lt_library. * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object. Wed Mar 20 00:08:23 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty. Tue Mar 19 16:31:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL, VEOL2, VMIN, VTIME): Corrected. (PAGEOUT, WRAP, VDSUSP): Deleted. * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 527901cd6d..1625d3cf5b 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -430,8 +430,7 @@ _dl_map_object_from_fd (const char *name, int fd, char *realname)
}
}
- if (type == ET_EXEC)
- l->l_type = lt_executable;
+ l->l_type = type == ET_EXEC ? lt_executable : lt_library;
if (l->l_ld == 0)
{