aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpp
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-12-17 11:48:41 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-12-17 12:16:13 +0100
commit93aabf891e96e93f100081ee07989c23d7107d17 (patch)
treef56c621b82908e07f02d85982d2e26f630a5e790 /scripts/cpp
parent4db172a54d43f9b7fd17e66fc44a34efb3cab1e1 (diff)
downloadglibc-93aabf891e96e93f100081ee07989c23d7107d17.tar.xz
glibc-93aabf891e96e93f100081ee07989c23d7107d17.zip
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 23645707f12f2dd9d80b51effb2d9618a7b65565 ("Replace --enable-static-pie with --disable-default-pie"). Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com> (cherry picked from commit ce1e5b11229f19820b86f8b19d651f16009552b0)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions