FreeBSD Bugzilla – Attachment 169434 Details for
Bug 208894
RTLD gives its own weak symbols preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch to reverse symbol lookup bias.
rtld.diff (text/plain), 482 bytes, created by
Lawrence Esswood
on 2016-04-18 14:08:21 UTC
(
hide
)
Description:
A patch to reverse symbol lookup bias.
Filename:
MIME Type:
Creator:
Lawrence Esswood
Created:
2016-04-18 14:08:21 UTC
Size:
482 bytes
patch
obsolete
>--- rtld.c 2016-04-18 13:49:44.514634102 +0000 >+++ rtld_fixed.c 2016-04-18 13:53:35.996618166 +0000 >@@ -3948,7 +3948,8 @@ > if (req->sym_out == NULL || > ELF_ST_BIND(req->sym_out->st_info) == STB_WEAK) { > res = symlook_obj(&req1, &obj_rtld); >- if (res == 0) { >+ if (res == 0 && (req->sym_out == NULL || >+ ELF_ST_BIND(req1.sym_out->st_info) != STB_WEAK)) { > req->sym_out = req1.sym_out; > req->defobj_out = req1.defobj_out; > assert(req->defobj_out != NULL);
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 208894
: 169434