[klibc] ppc64: build with -mcmodel=small

If available, use -mcmodel=small. klibc is small enough that we
should never hit the limits of the small memory model.

This produces better code, for example:

000000000f003890 <.strcasecmp>:
f003890:       3c a2 ff fe     addis   r5,r2,-2
f003898:       38 c5 23 58     addi    r6,r5,9048
f0038ac:       7d 46 50 ae     lbzx    r10,r6,r10


000000000f0037c4 <.strcasecmp>:
f0037c4:       e8 c2 81 48     ld      r6,-32440(r2)
f0037dc:       7d 46 50 ae     lbzx    r10,r6,r10

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 file changed