mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
ab1d521db3
[(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version, we can skip the uname call if it's there. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use DL_SYSDEP_OSCHECK here. * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead. * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_sysinfo_map. * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the rtld_is_main case. Call it unconditionally later. Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call. Initialize GLRO(dl_sysinfo_map). * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called. * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro. (_dl_important_hwcaps) [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names and bit values. * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro. (hwcap_extra): New static variable. (is_hwcap_platform): Check hwcap_extra for a matching name. Remove tls special case. (path_hwcap): Likewise. (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits and their names, stored in hwcap_extra. (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls". * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for _dl_hwcap and _dl_hwcap_mask. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for AT_HWCAP to unsigned long int. * elf/dl-support.c (_dl_aux_init): Likewise. (_dl_hwcap): Update defn. * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic. * elf/ldconfig.c (search_dir): Likewise. |
||
---|---|---|
.. | ||
alpha | ||
arm | ||
bsd | ||
common | ||
i386 | ||
inet | ||
mips | ||
mman | ||
powerpc | ||
sh | ||
sparc | ||
sysv | ||
x86_64 | ||
_exit.S | ||
alarm.c | ||
clock_gettime.c | ||
clock_nanosleep.c | ||
clock_settime.c | ||
closedir.c | ||
configure | ||
configure.in | ||
confstr.h | ||
dirfd.c | ||
dirstream.h | ||
Dist | ||
errnos-tmpl.c | ||
errnos.awk | ||
execve.S | ||
fork.S | ||
fxstat.c | ||
getdents.c | ||
getegid.S | ||
geteuid.S | ||
getlogin_r.c | ||
getlogin.c | ||
getpagesize.c | ||
getppid.S | ||
grantpt.c | ||
Implies | ||
ioctls-tmpl.c | ||
ioctls.awk | ||
make_errlist.c | ||
make-syscalls.sh | ||
Makefile | ||
mk-local_lim.c | ||
mkdir.c | ||
mkfifo.c | ||
nice.c | ||
opendir.c | ||
readdir_r.c | ||
readdir.c | ||
rewinddir.c | ||
rmdir.c | ||
s-proto-bp.S | ||
s-proto-cancel.S | ||
s-proto.S | ||
seekdir.c | ||
setxid.h | ||
siglist.c | ||
snarf-ioctls | ||
sockatmark.c | ||
start.c | ||
stime.c | ||
Subdirs | ||
syscall.S | ||
syscalls.list | ||
sysdep.h | ||
system.c | ||
telldir.c | ||
time.c | ||
utime.c | ||
xmknod.c | ||
xstat.c |