Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 511216 Details for
Bug 640966
<sys-libs/glibc-2.27 : build error with profile 17.0 on sparc (sln segfaults)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glibc-2.26-no-memcpy-ifunc.patch
glibc-2.26-no-memcpy-ifunc.patch (text/plain), 854 bytes, created by
Sergei Trofimovich (RETIRED)
on 2017-12-20 16:16:43 UTC
(
hide
)
Description:
glibc-2.26-no-memcpy-ifunc.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2017-12-20 16:16:43 UTC
Size:
854 bytes
patch
obsolete
>diff --git a/csu/libc-tls.c b/csu/libc-tls.c >index 3c897bf28b..aed66f6f95 100644 >--- a/csu/libc-tls.c >+++ b/csu/libc-tls.c >@@ -102,4 +102,10 @@ init_static_tls (size_t memsz, size_t align) > } > >+static void silly_slow_memcpy(char * dst, const char * src, size_t sz) { >+ for (size_t i = 0; i < sz; ++i) { >+ dst[i] = src[i]; >+ } >+} >+ > void > __libc_setup_tls (void) >@@ -176,7 +182,9 @@ __libc_setup_tls (void) > # error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined" > #endif >+ > _dl_static_dtv[2].pointer.to_free = NULL; > /* sbrk gives us zero'd memory, so we don't need to clear the remainder. */ >- memcpy (_dl_static_dtv[2].pointer.val, initimage, filesz); >+ //memcpy (_dl_static_dtv[2].pointer.val, initimage, filesz); >+ silly_slow_memcpy(_dl_static_dtv[2].pointer.val, initimage, filesz); > > /* Install the pointer to the dtv. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 640966
:
509968
|
510224
| 511216 |
517822