Checking patch elf/dl-lookup.c... error: while searching for: return 0; } int protected = (*ref && ELFW(ST_VISIBILITY) ((*ref)->st_other) == STV_PROTECTED); if (__glibc_unlikely (protected != 0)) { /* It is very tricky. We need to figure out what value to return for the protected symbol. */ if (type_class == ELF_RTYPE_CLASS_PLT) { if (current_value.s != NULL && current_value.m != undef_map) { current_value.s = *ref; current_value.m = undef_map; } } else { struct sym_val protected_value = { NULL, NULL }; for (scope = symbol_scope; *scope != NULL; i = 0, ++scope) if (do_lookup_x (undef_name, new_hash, &old_hash, *ref, &protected_value, *scope, i, version, flags, skip_map, (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA && ELFW(ST_TYPE) ((*ref)->st_info) == STT_OBJECT && type_class == ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA) ? ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA : ELF_RTYPE_CLASS_PLT, NULL) != 0) break; if (protected_value.s != NULL && protected_value.m != undef_map) { current_value.s = *ref; current_value.m = undef_map; } } } error: patch failed: elf/dl-lookup.c:863 error: elf/dl-lookup.c: patch does not apply