From 81e8f981a857ecf00975eab46b72e3d24690e9d6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 25 Apr 2002 04:40:06 +0000 Subject: Don't bother zeroing BSS, since actually we _can_ rely on the loader to do it. --- libc/sysdeps/linux/v850/crt0.S | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libc/sysdeps/linux/v850/crt0.S b/libc/sysdeps/linux/v850/crt0.S index e6c442776..db4ff3596 100644 --- a/libc/sysdeps/linux/v850/crt0.S +++ b/libc/sysdeps/linux/v850/crt0.S @@ -29,17 +29,8 @@ C_ENTRY(start): shl 2, r10 // Convert to byte-count to skip add r10, r8 - // Zero bss area, since we can't rely upon any loader to do so - mov hilo(C_SYMBOL_NAME(edata)), ep - mov hilo(C_SYMBOL_NAME(end)), r10 -2: cmp ep, r10 - be 3f - sst.w r0, 0[ep] - add 4, ep - br 2b - // Load CTBP register -3: mov hilo(C_SYMBOL_NAME(_ctbp)), r19 + mov hilo(C_SYMBOL_NAME(_ctbp)), r19 ldsr r19, ctbp // Load GP -- cgit v1.2.3