From 246f1c811448f37a44b41cd8df8d0ef9736d95f4 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 26 Sep 2022 17:14:18 -0400 Subject: remove LFS64 symbol aliases; replace with dynamic linker remapping originally the namespace-infringing "large file support" interfaces were included as part of glibc-ABI-compat, with the intent that they not be used for linking, since our off_t is and always has been unconditionally 64-bit and since we usually do not aim to support nonstandard interfaces when there is an equivalent standard interface. unfortunately, having the symbols present and available for linking caused configure scripts to detect them and attempt to use them without declarations, producing all the expected ill effects that entails. as a result, commit 2dd8d5e1b8ba1118ff1782e96545cb8a2318592c was made to prevent this, using macros to redirect the LFS64 names to the standard names, conditional on _GNU_SOURCE or _LARGEFILE64_SOURCE. however, this has turned out to be a source of further problems, especially since g++ defines _GNU_SOURCE by default. in particular, the presence of these names as macros breaks a lot of valid code. this commit removes all the LFS64 symbols and replaces them with a mechanism in the dynamic linker symbol lookup failure path to retry with the spurious "64" removed from the symbol name. in the future, if/when the rest of glibc-ABI-compat is moved out of libc, this can be removed. --- src/regex/glob.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/regex/glob.c') diff --git a/src/regex/glob.c b/src/regex/glob.c index 9de080ed..a4906446 100644 --- a/src/regex/glob.c +++ b/src/regex/glob.c @@ -306,6 +306,3 @@ void globfree(glob_t *g) g->gl_pathc = 0; g->gl_pathv = NULL; } - -weak_alias(glob, glob64); -weak_alias(globfree, globfree64); -- cgit 1.4.1