freebsd-skq/lib/libc/i386
Jilles Tjoelker a8599e090f libc/i386: Do not export .cerror.
For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit
in the FBSDprivate_1.0 version. It looks like there is no reason for this
since it is not used from other libraries. Given that it cannot be accessed
from C and its strange calling convention, it is rather unlikely that other
things rely on it. Perhaps it is from a time when symbols could not be
hidden.

Not exporting .cerror causes it to be jumped to directly instead of via the
PLT.

This change also takes advantage of .cerror's new status by not saving and
loading %ebx before jumping to it. (Therefore, .cerror now saves and loads
%ebx itself.) Where there was a conditional jump to a jump to .cerror, the
conditional jump has been changed to jump to .cerror directly (many modern
CPUs don't do static prediction and in any case it is not much of a benefit
anyway).

This change makes libc.so.7 a few kilobytes smaller.

Reviewed by:	kib
2012-09-05 21:41:05 +00:00
..
gen libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
stdlib
string Change index() and rindex() to a weak alias. 2012-01-05 10:32:53 +00:00
sys libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
_fpmath.h
arith.h
gd_qnan.h
Makefile.inc
Symbol.map libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
SYS.h libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00