aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-17 15:59:51 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-17 15:59:51 +0000
commitdc051821742cd7195bed74d6ae789ee1b82a62aa (patch)
tree5e15a105308067d7625859ea541223525f6f8bb4 /elf
parent466a0ec9985e540107ba6e92ba2f6a268ce04154 (diff)
downloadglibc-dc051821742cd7195bed74d6ae789ee1b82a62aa.zip
glibc-dc051821742cd7195bed74d6ae789ee1b82a62aa.tar.gz
glibc-dc051821742cd7195bed74d6ae789ee1b82a62aa.tar.bz2
Update.
* elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect. * elf/dl-lookup.c: Likewise. * elf/dl-init.c (_dl_init): Likewise. * elf/dl-fini.c (_dl_fini): Likewise. * elf/dl-deps.c (_dl_map_object_deps): Likewise. * elf/dl-close.c (_dl_close): Likewise. * elf/rtld.c (_dl_start_final): Likewise.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-reloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 61bb6bc..ba9119b 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -43,7 +43,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
l->l_name[0] ? l->l_name : _dl_argv[0],
lazy ? " (lazy)\n" : "\n", NULL);
- if (l->l_info[DT_TEXTREL])
+ if (__builtin_expect (l->l_info[DT_TEXTREL] != NULL, 0))
{
/* Bletch. We must make read-only segments writable
long enough to relocate them. */
@@ -101,7 +101,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
/* DT_TEXTREL is now in level 2 and might phase out at some time.
But we rewrite the DT_FLAGS entry to make testing easier and
therefore it will be available at all time. */
- if (l->l_info[DT_TEXTREL])
+ if (__builtin_expect (l->l_info[DT_TEXTREL] != NULL, 0))
{
/* Undo the protection change we made before relocating. */
const ElfW(Phdr) *ph;