From 585d9c182d34e96553f18ae357c46d2af4e57dee Mon Sep 17 00:00:00 2001 From: Chung-Lin Tang Date: Fri, 9 Jan 2015 09:40:29 -0800 Subject: Remove divide from _ELF_DYNAMIC_DO_RELOC in elf/dynamic-link.h. --- elf/dynamic-link.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'elf/dynamic-link.h') diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h index a3eb173..6f4a773 100644 --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h @@ -122,8 +122,7 @@ elf_machine_lazy_rel (struct link_map *map, ranges[0].size = (map)->l_info[DT_##RELOC##SZ]->d_un.d_val; \ if (map->l_info[VERSYMIDX (DT_##RELOC##COUNT)] != NULL) \ ranges[0].nrelative \ - = MIN (map->l_info[VERSYMIDX (DT_##RELOC##COUNT)]->d_un.d_val, \ - ranges[0].size / sizeof (ElfW(reloc))); \ + = map->l_info[VERSYMIDX (DT_##RELOC##COUNT)]->d_un.d_val; \ } \ if ((map)->l_info[DT_PLTREL] \ && (!test_rel || (map)->l_info[DT_PLTREL]->d_un.d_val == DT_##RELOC)) \ -- cgit v1.1