This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
PATCH: fix cma101.c
- From: Eric Christopher <echristo at redhat dot com>
- To: newlib at sources dot redhat dot com
- Cc: cgd at broadcom dot com
- Date: 01 May 2003 14:44:44 -0700
- Subject: PATCH: fix cma101.c
- Organization:
The definition of end leads you to believe end is in sdata. It isn't :)
rth found it :)
-eric
--
Eric Christopher <echristo@redhat.com>
2003-05-01 Eric Christopher <echristo@redhat.com>
* mips/cma101.c (__sizemem): Make sure that end is not
in .sdata.
Index: cma101.c
===================================================================
RCS file: /cvs/src/src/libgloss/mips/cma101.c,v
retrieving revision 1.3
diff -u -p -w -r1.3 cma101.c
--- cma101.c 1 Feb 2002 17:22:59 -0000 1.3
+++ cma101.c 1 May 2003 21:43:07 -0000
@@ -189,7 +189,7 @@ __sizemem ()
volatile unsigned int *probe;
unsigned int baseorig;
unsigned int sr;
- extern void *end;
+ extern void end[];
char *endptr = (char *)&end;
int extra;