glibc/sysdeps/unix
Florian Weimer ce1e5b1122 arm: Guard ucontext _rtld_global_ro access by SHARED, not PIC macro
Due to PIE-by-default, PIC is now defined in more cases.  libc.a
does not have _rtld_global_ro, and statically linking setcontext
fails.  SHARED is the right condition to use, so that libc.a
references _dl_hwcap instead of _rtld_global_ro.

For static PIE support, the !SHARED case would still have to be made
PIC.  This patch does not achieve that.

Fixes commit 23645707f1
("Replace --enable-static-pie with --disable-default-pie").

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
2021-12-17 11:48:44 +01:00
..
alpha linux: Implement pipe in terms of __NR_pipe2 2021-11-30 13:13:03 -03:00
arm
bsd Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
i386
inet
mips linux: Implement pipe in terms of __NR_pipe2 2021-11-30 13:13:03 -03:00
powerpc
sh
sysv/linux arm: Guard ucontext _rtld_global_ro access by SHARED, not PIC macro 2021-12-17 11:48:44 +01:00
x86_64
Implies
Makefile Remove the unused +mkdep/+make-deps/s-proto.S/s-proto-cancel.S 2021-11-10 04:54:18 -08:00
confstr.h
get_child_max.c
getlogin.c
getlogin_r.c
getpagesize.c
grantpt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
ifreq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
make-syscalls.sh
setxid.h
sockatmark.c
syscall-template.S
syscall.S
syscalls.list misc: Add time64 alias for ioctl 2021-07-21 11:58:09 +02:00
sysdep.h linux: Add generic syscall implementation 2021-12-06 08:03:11 -03:00