Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 432574 Details for
Bug 579374
sys-libs/glibc-2.22-r4: various crashes when using prelink
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glibc-fix-local-scope-for-prelink-conflicts.patch
glibc-fix-local-scope-for-prelink-conflicts.patch (text/plain), 906 bytes, created by
Alexander Miller
on 2016-04-29 15:30:27 UTC
(
hide
)
Description:
glibc-fix-local-scope-for-prelink-conflicts.patch
Filename:
MIME Type:
Creator:
Alexander Miller
Created:
2016-04-29 15:30:27 UTC
Size:
906 bytes
patch
obsolete
>Build the local symbol search scope for libraries in the correct order. >This fixes missing conflict fixups when prelinking. > >--- glibc-2.22/elf/dl-deps.c >+++ glibc-2.22/elf/dl-deps.c >@@ -70,18 +70,23 @@ openaux (void *a) > static ptrdiff_t > internal_function > _dl_build_local_scope (struct link_map **list, struct link_map *map) > { >- struct link_map **p = list; >+ size_t n = 0; >+ size_t m; > struct link_map **q; > >- *p++ = map; >+ list[n++] = map; > map->l_reserved = 1; >- if (map->l_initfini) >- for (q = map->l_initfini + 1; *q; ++q) >- if (! (*q)->l_reserved) >- p += _dl_build_local_scope (p, *q); >- return p - list; >+ for (m = 0; m < n; ++m) >+ if (list[m]->l_initfini) >+ for (q = list[m]->l_initfini + 1; *q; ++q) >+ if (! (*q)->l_reserved) >+ { >+ list[n++] = *q; >+ (*q)->l_reserved = 1; >+ } >+ return n; > } > > > /* We use a very special kind of list to track the path
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 579374
:
429948
|
430302
|
432494
| 432574