diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-02-14 11:54:09 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-02-14 11:54:09 +0000 |
commit | d891064218c362387465ab1ad98e438d8d0b4b91 (patch) | |
tree | ab14ea12ddc2456c13520784381a7418f6566c18 /ldso/ldso/mips | |
parent | deec524084aa2faad66f7aae7e8b5ba1ab6789fd (diff) |
Give gcc branch prediction some hits on obviously unlikely branches
Diffstat (limited to 'ldso/ldso/mips')
-rw-r--r-- | ldso/ldso/mips/elfinterp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c index 5d3355b88..97923caa3 100644 --- a/ldso/ldso/mips/elfinterp.c +++ b/ldso/ldso/mips/elfinterp.c @@ -130,7 +130,7 @@ unsigned long _dl_linux_resolver(unsigned long sym_index, new_addr = (unsigned long) _dl_find_hash(symname, tpnt->symbol_scope, ELF_RTYPE_CLASS_PLT); - if (!new_addr) { + if (unlikely(!new_addr)) { _dl_dprintf (2, "%s: can't resolve symbol '%s'\n", _dl_progname, symname); _dl_exit (1); |