From 535e935a284b2ec96659d1ac40eebf61321f2362 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Wed, 13 Apr 2022 19:46:03 -0500 Subject: Replace {u}int_fast{16|32} with {u}int32_t On 32-bit machines this has no affect. On 64-bit machines {u}int_fast{16|32} are set as {u}int64_t which is often not ideal. Particularly x86_64 this change both saves code size and may save instruction cost. Full xcheck passes on x86_64. --- elf/setup-vdso.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf/setup-vdso.h') diff --git a/elf/setup-vdso.h b/elf/setup-vdso.h index db639b0..c0807ea 100644 --- a/elf/setup-vdso.h +++ b/elf/setup-vdso.h @@ -36,7 +36,7 @@ setup_vdso (struct link_map *main_map __attribute__ ((unused)), l->l_phdr = ((const void *) GLRO(dl_sysinfo_dso) + GLRO(dl_sysinfo_dso)->e_phoff); l->l_phnum = GLRO(dl_sysinfo_dso)->e_phnum; - for (uint_fast16_t i = 0; i < l->l_phnum; ++i) + for (unsigned int i = 0; i < l->l_phnum; ++i) { const ElfW(Phdr) *const ph = &l->l_phdr[i]; if (ph->p_type == PT_DYNAMIC) -- cgit v1.1