Checking patch elf/dl-lookup.c... error: while searching for: if (sym != NULL) { found_it: /* When UNDEF_MAP is NULL, which indicates we are called from do_lookup_x on relocation against protected data, we skip the data definion in the executable from copy reloc. */ if (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA && undef_map == NULL && map->l_type == lt_executable && type_class == ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA) { const ElfW(Sym) *s; unsigned int i; #if ! ELF_MACHINE_NO_RELA if (map->l_info[DT_RELA] != NULL && map->l_info[DT_RELASZ] != NULL && map->l_info[DT_RELASZ]->d_un.d_val != 0) { const ElfW(Rela) *rela = (const ElfW(Rela) *) D_PTR (map, l_info[DT_RELA]); unsigned int rela_count = map->l_info[DT_RELASZ]->d_un.d_val / sizeof (*rela); for (i = 0; i < rela_count; i++, rela++) if (elf_machine_type_class (ELFW(R_TYPE) (rela->r_info)) == ELF_RTYPE_CLASS_COPY) { s = &symtab[ELFW(R_SYM) (rela->r_info)]; if (!strcmp (strtab + s->st_name, undef_name)) goto skip; } } #endif #if ! ELF_MACHINE_NO_REL if (map->l_info[DT_REL] != NULL && map->l_info[DT_RELSZ] != NULL && map->l_info[DT_RELSZ]->d_un.d_val != 0) { const ElfW(Rel) *rel = (const ElfW(Rel) *) D_PTR (map, l_info[DT_REL]); unsigned int rel_count = map->l_info[DT_RELSZ]->d_un.d_val / sizeof (*rel); for (i = 0; i < rel_count; i++, rel++) if (elf_machine_type_class (ELFW(R_TYPE) (rel->r_info)) == ELF_RTYPE_CLASS_COPY) { s = &symtab[ELFW(R_SYM) (rel->r_info)]; if (!strcmp (strtab + s->st_name, undef_name)) goto skip; } } #endif } /* Hidden and internal symbols are local, ignore them. */ if (__glibc_unlikely (dl_symbol_visibility_binds_local_p (sym))) goto skip; error: patch failed: elf/dl-lookup.c:456 error: elf/dl-lookup.c: patch does not apply Checking patch sysdeps/arc/dl-sysdep.h... error: sysdeps/arc/dl-sysdep.h: No such file or directory Checking patch sysdeps/generic/ldsodefs.h... error: while searching for: satisfied by any symbol in the executable. Some architectures do not support copy relocations. In this case we define the macro to zero so that the code for handling them gets automatically optimized out. ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA means address of protected data defined in the shared library may be external, i.e., due to copy relocation. */ #define ELF_RTYPE_CLASS_PLT 1 #ifndef DL_NO_COPY_RELOCS # define ELF_RTYPE_CLASS_COPY 2 #else # define ELF_RTYPE_CLASS_COPY 0 #endif /* If DL_EXTERN_PROTECTED_DATA is defined, address of protected data defined in the shared library may be external, i.e., due to copy relocation. */ #ifdef DL_EXTERN_PROTECTED_DATA # define ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA 4 #else # define ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA 0 #endif /* ELF uses the PF_x macros to specify the segment permissions, mmap uses PROT_xxx. In most cases the three macros have the values 1, 2, error: patch failed: sysdeps/generic/ldsodefs.h:149 error: sysdeps/generic/ldsodefs.h: patch does not apply Checking patch sysdeps/i386/dl-machine.h... error: while searching for: || (type) == R_386_TLS_DTPOFF32 || (type) == R_386_TLS_TPOFF32 \ || (type) == R_386_TLS_TPOFF || (type) == R_386_TLS_DESC) \ * ELF_RTYPE_CLASS_PLT) \ | (((type) == R_386_COPY) * ELF_RTYPE_CLASS_COPY) \ | (((type) == R_386_GLOB_DAT) * ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA)) /* A reloc type used for ld.so cmdline arg lookups to reject PLT entries. */ #define ELF_MACHINE_JMP_SLOT R_386_JMP_SLOT error: patch failed: sysdeps/i386/dl-machine.h:203 error: sysdeps/i386/dl-machine.h: patch does not apply Checking patch sysdeps/nios2/dl-sysdep.h... error: sysdeps/nios2/dl-sysdep.h: No such file or directory Checking patch sysdeps/x86/dl-lookupcfg.h... error: while searching for: #include_next /* Address of protected data defined in the shared library may be external due to copy relocation. */ #define DL_EXTERN_PROTECTED_DATA struct link_map; extern void _dl_unmap (struct link_map *map) attribute_hidden; error: patch failed: sysdeps/x86/dl-lookupcfg.h:20 error: sysdeps/x86/dl-lookupcfg.h: patch does not apply Checking patch sysdeps/x86_64/dl-machine.h... error: while searching for: TLS variable, so undefined references should not be allowed to define the value. ELF_RTYPE_CLASS_COPY iff TYPE should not be allowed to resolve to one of the main executable's symbols, as for a COPY reloc. ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA iff TYPE describes relocation may against protected data whose address be external due to copy relocation. */ #define elf_machine_type_class(type) \ ((((type) == R_X86_64_JUMP_SLOT \ || (type) == R_X86_64_DTPMOD64 \ error: patch failed: sysdeps/x86_64/dl-machine.h:181 error: sysdeps/x86_64/dl-machine.h: patch does not apply