Checking patch elf/Makefile... Hunk #3 succeeded at 509 (offset 2 lines). Hunk #4 succeeded at 881 (offset 6 lines). error: while searching for: $(LINK.o) -Wl,--no-as-needed -nostartfiles -nostdlib -shared -o $@ $^ $(objpfx)tst-nodeps2.out: \ $(objpfx)tst-nodeps1-mod.so $(objpfx)tst-nodeps2-mod.so error: patch failed: elf/Makefile:3031 error: elf/Makefile: patch does not apply Checking patch elf/dl-close.c... error: while searching for: /* Call its termination function. Do not do it for half-cooked objects. Temporarily disable exception handling, so that errors are fatal. */ if (imap->l_rw->l_init_called) _dl_catch_exception (NULL, _dl_call_fini, imap); error: patch failed: elf/dl-close.c:260 error: elf/dl-close.c: patch does not apply Checking patch elf/dl-libc_freeres.c... error: while searching for: struct link_map_private *l; struct r_search_path_elem *d; /* Remove all search directories. */ d = GL(dl_all_dirs); while (d != GLRO(dl_init_all_dirs)) error: patch failed: elf/dl-libc_freeres.c:52 error: elf/dl-libc_freeres.c: patch does not apply Checking patch elf/dl-load.c... Hunk #2 succeeded at 942 (offset -2 lines). error: while searching for: } } void _dl_rtld_di_serinfo (struct link_map_private *loader, Dl_serinfo *si, bool counting) error: patch failed: elf/dl-load.c:2251 error: elf/dl-load.c: patch does not apply Checking patch elf/dl-object.c... error: while searching for: # define audit_space 0 #endif new = calloc (sizeof (*new) + sizeof (struct link_map_private *) + sizeof (*newname) + libname_len, 1); if (new == NULL) return NULL; new->l_rw = calloc (1, sizeof (*new->l_rw) + audit_space); if (new->l_rw == NULL) { free (new); return NULL; } error: patch failed: elf/dl-object.c:89 error: elf/dl-object.c: patch does not apply Checking patch elf/dl-open.c... Hunk #2 succeeded at 174 (offset -1 lines). Hunk #3 succeeded at 206 (offset -1 lines). Hunk #4 succeeded at 564 (offset -1 lines). Hunk #6 succeeded at 954 (offset -1 lines). Checking patch elf/dl-protmem-internal.h... Checking patch elf/dl-protmem.c... Checking patch elf/dl-protmem.h... Checking patch elf/dl-protmem_bootstrap.h... error: elf/dl-protmem_bootstrap.h: No such file or directory Checking patch elf/rtld.c... error: while searching for: #include #include #include #include error: patch failed: elf/rtld.c:54 error: elf/rtld.c: patch does not apply Checking patch elf/tst-relro-linkmap-mod1.c... Checking patch elf/tst-relro-linkmap-mod2.c... Checking patch elf/tst-relro-linkmap-mod3.c... Checking patch elf/tst-relro-linkmap.c... Checking patch include/link.h... error: while searching for: than one namespace. */ struct link_map_private *l_real; /* Run-time writable fields. */ struct link_map_rw *l_rw; error: patch failed: include/link.h:164 error: include/link.h: patch does not apply Checking patch sysdeps/generic/ldsodefs.h... error: while searching for: #endif #ifdef SHARED /* Implementation structure for the protected memory area. */ struct rtld_protmem { /* Structure describing the dynamic linker itself. */ error: patch failed: sysdeps/generic/ldsodefs.h:524 error: sysdeps/generic/ldsodefs.h: patch does not apply