mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-01 05:02:03 +03:00
Finish IFUNC support for x86 and x86-64.
Add support for the IRELAIVE relocation and IFUNC in static executables.
This commit is contained in:
@@ -845,4 +845,21 @@ for linking")
|
||||
} \
|
||||
__asm__ (".type " #name ", %gnu_indirect_function");
|
||||
|
||||
#ifdef HAVE_ASM_SET_DIRECTIVE
|
||||
# define libc_ifunc_hidden_def1(local, name) \
|
||||
__asm__ (declare_symbol_alias_1_stringify (ASM_GLOBAL_DIRECTIVE) \
|
||||
" " #local "\n\t" \
|
||||
".hidden " #local "\n\t" \
|
||||
".set " #local ", " #name);
|
||||
#else
|
||||
# define libc_ifunc_hidden_def1(local, name) \
|
||||
__asm__ (declare_symbol_alias_1_stringify (ASM_GLOBAL_DIRECTIVE) \
|
||||
" " #local "\n\t" \
|
||||
".hidden " #local "\n\t" \
|
||||
#local " = " #name);
|
||||
#endif
|
||||
|
||||
#define libc_ifunc_hidden_def(name) \
|
||||
libc_ifunc_hidden_def1 (__GI_##name, name)
|
||||
|
||||
#endif /* libc-symbols.h */
|
||||
|
Reference in New Issue
Block a user