freebsd-skq/lib/libc/i386
jilles a78b4512de 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 Add section .note.GNU-stack for assembly files used by 386 and amd64. 2011-01-07 16:08:40 +00:00
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 Add an alternative view of the bits in an 80-bit long double (64+16 2008-01-17 16:39:07 +00:00
arith.h
gd_qnan.h Arrange so that the NaN returned by strtod("nan", NULL) is the same as 2007-12-16 21:15:09 +00:00
Makefile.inc In scanf, round according to the current rounding mode. 2007-12-03 07:17:33 +00:00
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