]> sourceware.org Git - glibc.git/commit
ldbl-128ibm-compat: PLT redirects for using ldbl redirects internally
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Fri, 7 Feb 2020 20:07:55 +0000 (14:07 -0600)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Wed, 25 Mar 2020 19:34:23 +0000 (14:34 -0500)
commit45ae17dd7ed3b9dea0d698d1c37a978d8d0a9aa2
tree3bcf36847e060d0af834270805e9cddf76cc178e
parent4eda036f5b897fa8bc20ddd2099b5a6ed4239dc9
ldbl-128ibm-compat: PLT redirects for using ldbl redirects internally

Tweak the PLT bypass magic when building glibc with long double
redirects.  This is made more difficult by the fact we only get
one chance to redirect functions.  This happens via the public
headers.

There are roughly three classes of redirect we need to attend to
today:

 1. Simple redirects, redirected via cdef macro overrides and
    and new libc_hidden_ldbl_proto macro.
 2. Internal usage of internal API, e.g __snprintf, which has
    no direct analogue.  This is bypassed directly on case-by-
    case basis.
 3. Double redirects, e.g sscanf and related.  These require
    a heavier handed approach of macro renaming to existing
    symbols.

Most simple redirects are handled via 1.  Ideally, the libc_*
macro would live in libc-symbols.h, but in practice the macros
needed for it to do anything useful live in cdefs.h, so they
are defined in the local override.

Notably, the internal name of the asprintf generated for ieee ldbl
redirects is renamed to work with internal prefixed usage.

This resolves the local plt usage introduced when building glibc
with ldbl == ieee128 on ppc64le.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17 files changed:
include/err.h
include/libc-symbols.h
include/stdio.h
include/sys/cdefs.h
include/sys/syslog.h
include/wchar.h
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-asprintf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-dprintf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-err.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-fprintf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-isoc99_sscanf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-isoc99_vfscanf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-isoc99_vsscanf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-sprintf.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-syslog.c
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-vfprintf.c
sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h
This page took 0.044767 seconds and 5 git commands to generate.