* sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
authorjakub <jakub>
Sat, 7 Jul 2007 17:31:44 +0000 (17:31 +0000)
committerjakub <jakub>
Sat, 7 Jul 2007 17:31:44 +0000 (17:31 +0000)
commite99725b99413c710d0da1e538a277e1afbacf8b4
tree5d20132d84a9af620f21126320f44126b4d4c742
parent4ae55df8626314e90d1bc863c1b67f84cfbe15a0
* sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
to fill in holes
(rtld_global_ro): Likewise.

* elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
Move PT_LOAD checking to...
(_dl_addr_inside_object): ... here, new function.
* elf/dl-sym.c (do_sym): If not l_contiguous,
call _dl_addr_inside_object.
* elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
* dlfcn/dlinfo.c (dlinfo_doit): Likewise.
* elf/dl-open.c (dl_open_worker): Likewise.
(_dl_addr_inside_object): New function if IS_IN_rtld.
* elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
holes are present or are PROT_NONE protected.
* include/link.h (struct link_map): Add l_contiguous field.
* sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
ChangeLog
dlfcn/dlinfo.c
elf/dl-addr.c
elf/dl-iteratephdr.c
elf/dl-load.c
elf/dl-open.c
elf/dl-sym.c
include/link.h
sysdeps/generic/ldsodefs.h