Movatterモバイル変換


[0]ホーム

URL:


This is the mail archive of thelibc-alpha@sourceware.orgmailing list for theglibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav:[Date Prev] [Date Next][Thread Prev] [Thread Next]
Other format:[Raw text]

[PATCH] Don't add hidden symbols into static binaries


The __GI_* symbol aliases for __memcpy_generic are unnecessary sincethey're never used.  Add them only for libc.so to avoid PLT.  Maybesome time in future we need to evaluate the relative cost of PLT vsgains from multiarch memcpy implementations and take a call on whetherto drop this completely.* sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):Define only for libc.so.--- sysdeps/aarch64/multiarch/memcpy_generic.S | 2 ++ 1 file changed, 2 insertions(+)diff --git a/sysdeps/aarch64/multiarch/memcpy_generic.S b/sysdeps/aarch64/multiarch/memcpy_generic.Sindex 041a779..edb2e52 100644--- a/sysdeps/aarch64/multiarch/memcpy_generic.S+++ b/sysdeps/aarch64/multiarch/memcpy_generic.S@@ -33,9 +33,11 @@ # undef libc_hidden_builtin_def # define libc_hidden_builtin_def(name) +# ifdef SHARED /* It doesn't make sense to send libc-internal memcpy calls through a PLT. */ .globl __GI_memcpy; __GI_memcpy = __memcpy_generic .globl __GI_memmove; __GI_memmove = __memmove_generic+# endif  #endif -- 2.7.4

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav:[Date Prev] [Date Next][Thread Prev] [Thread Next]

[8]ページ先頭

©2009-2026 Movatter.jp