From fd96f062085be71f4e2c07c98a3002bd55793b6e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 1 Jun 2009 11:49:05 -0700 Subject: Small optimization of STT_GNU_IFUNC handling. The test to call the indirect function now includes a subtest to checked whether the symbol is defined. When coming to that point this is almost always the case. The test for STT_GNU_IFUNC on the other hand rarely is true. Move it to the front means we don't have to perform the second test unless really necessary. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 10829a3d21..6aad771397 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-06-01 Ulrich Drepper + * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions + for STT_GNU_IFUNC handling for efficiency. + * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise. + * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just _exit. * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise. -- cgit v1.2.3