Checking patch elf/dl-load.c... Hunk #1 succeeded at 1409 (offset -5 lines). Hunk #2 succeeded at 1419 (offset -5 lines). Hunk #3 succeeded at 1922 (offset 5 lines). Checking patch elf/dl-open.c... Hunk #1 succeeded at 648 (offset -2 lines). Checking patch elf/rtld.c... error: while searching for: rtld_chain_load (struct link_map_private *main_map, char *argv0) { /* The dynamic loader run against itself. */ const char *rtld_soname = ((const char *) D_PTR (&GL(dl_rtld_map), l_info[DT_STRTAB]) + GL(dl_rtld_map).l_info[DT_SONAME]->d_un.d_val); if (main_map->l_info[DT_SONAME] != NULL && strcmp (rtld_soname, ((const char *) D_PTR (main_map, l_info[DT_STRTAB]) + main_map->l_info[DT_SONAME]->d_un.d_val)) == 0) _dl_fatal_printf ("%s: loader cannot load itself\n", rtld_soname); /* With DT_NEEDED dependencies, the executable is dynamically error: patch failed: elf/rtld.c:1075 error: elf/rtld.c: patch does not apply Checking patch elf/setup-vdso.h... error: while searching for: /* Now that we have the info handy, use the DSO image's soname so this object can be looked up by name. */ if (l->l_info[DT_SONAME] != NULL) { char *dsoname = ((char *) D_PTR (l, l_info[DT_STRTAB]) + l->l_info[DT_SONAME]->d_un.d_val); l->l_libname->name = dsoname; l->l_public.l_name = dsoname; } /* Add the vDSO to the object list. */ _dl_add_to_namespace_list (l, LM_ID_BASE); error: patch failed: elf/setup-vdso.h:77 error: elf/setup-vdso.h: patch does not apply Checking patch elf/sprof.c... Checking patch sysdeps/generic/ldsodefs.h... error: while searching for: #define D_PTR(map, i) \ ((map)->i->d_un.d_ptr + (dl_relocate_ld (map) ? 0 : (map)->l_public.l_addr)) /* Result of the lookup functions and how to retrieve the base address. */ typedef struct link_map_private *lookup_t; #define LOOKUP_VALUE(map) map error: patch failed: sysdeps/generic/ldsodefs.h:88 error: sysdeps/generic/ldsodefs.h: patch does not apply