diff options
Diffstat (limited to 'libc/elf/dl-reloc.c')
-rw-r--r-- | libc/elf/dl-reloc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libc/elf/dl-reloc.c b/libc/elf/dl-reloc.c index e6f77262b..f26d99296 100644 --- a/libc/elf/dl-reloc.c +++ b/libc/elf/dl-reloc.c @@ -271,17 +271,6 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[], relocations. If the shared object lacks a PLT (for example if it only contains lead function) the l_info[DT_PLTRELSZ] will be NULL. */ -#ifdef ELF_MACHINE_NO_PLT - l->l_reloc_result = calloc (sizeof (l->l_reloc_result[0]), 1); - if (l->l_reloc_result == NULL) - { - errstring = N_("\ -%s: out of memory to store relocation results for %s\n"); - _dl_fatal_printf (errstring, - rtld_progname ?: "<program name unknown>", - l->l_name); - } -#else if (l->l_info[DT_PLTRELSZ] == NULL) { errstring = N_("%s: no PLTREL found in object %s\n"); @@ -299,7 +288,6 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[], %s: out of memory to store relocation results for %s\n"); goto fatal; } -#endif } #endif } |