summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-04-25 04:40:06 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-04-25 04:40:06 +0000
commit81e8f981a857ecf00975eab46b72e3d24690e9d6 (patch)
tree94dccc60a6506cf3249c81e37feee292020c0d4e
parent3e87ecb2f6d97f0a12ba76a32f46bd0f27b72c1b (diff)
Don't bother zeroing BSS, since actually we _can_ rely on the loader to do it.
-rw-r--r--libc/sysdeps/linux/v850/crt0.S11
1 files changed, 1 insertions, 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