]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Disable symbol hack in libc_nonshared.a
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 23 Sep 2021 18:08:11 +0000 (11:08 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 27 Sep 2021 14:46:25 +0000 (07:46 -0700)
Don't reference __GI_memmove, __GI_memset, __GI_memcpy, __divdi3_internal,
__udivdi3_internal and __moddi3_internal in libc_nonshared.a.

sysdeps/generic/symbol-hacks.h
sysdeps/wordsize-32/divdi3-symbol-hacks.h

index 3586e6ed3879161cba25f6230c9ee3ffe85825dd..1115e4c0a7af113e21eefb99fb04ca794470e68a 100644 (file)
@@ -1,6 +1,7 @@
 /* Some compiler optimizations may transform loops into memset/memmove
    calls and without proper declaration it may generate PLT calls.  */
-#if !defined __ASSEMBLER__ && IS_IN (libc) && defined SHARED
+#if !defined __ASSEMBLER__ && IS_IN (libc) && defined SHARED \
+    && !defined LIBC_NONSHARED
 asm ("memmove = __GI_memmove");
 asm ("memset = __GI_memset");
 asm ("memcpy = __GI_memcpy");
index 3e7c54bd0c3289a9c2286659e56cf8dc8442c509..efbb0cce8b3d7971babaac18a5d5641cef95fd83 100644 (file)
@@ -23,7 +23,8 @@
    assembler.
    Note: in_divdi3_c is only used to avoid symbol alias on divdi3
    build itself.  */
-#if !defined __ASSEMBLER__ && !defined in_divdi3_c && IS_IN (libc) && defined SHARED
+#if !defined __ASSEMBLER__ && !defined in_divdi3_c && IS_IN (libc) \
+    && defined SHARED && !defined LIBC_NONSHARED
 asm ("__divdi3 = __divdi3_internal");
 asm ("__udivdi3 = __udivdi3_internal");
 asm ("__moddi3 = __moddi3_internal");