mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-30 14:31:14 +00:00
45ae17dd7e
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>
24 lines
521 B
C
24 lines
521 B
C
#ifndef _ERR_H
|
|
#include <misc/err.h>
|
|
|
|
/* Prototypes for internal err.h functions. */
|
|
void
|
|
__vwarnx_internal (const char *format, __gnuc_va_list ap,
|
|
unsigned int mode_flags);
|
|
|
|
void
|
|
__vwarn_internal (const char *format, __gnuc_va_list ap,
|
|
unsigned int mode_flags);
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
libc_hidden_ldbl_proto (warn)
|
|
libc_hidden_ldbl_proto (warnx)
|
|
libc_hidden_ldbl_proto (vwarn)
|
|
libc_hidden_ldbl_proto (vwarnx)
|
|
libc_hidden_ldbl_proto (verr)
|
|
libc_hidden_ldbl_proto (verrx)
|
|
|
|
# endif /* !_ISOMAC */
|
|
#endif /* err.h */
|