This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Tue, Dec 18, 2001 at 07:14:00PM +0200, Amit wrote: > I failed to mention that I am using newlib. > The previous link used libc.a at: D:\cygwin\home\amit\arm-elf\arm-elf\lib\ > I found libgcc at: D:\cygwin\home\amit\arm-elf\lib\gcc-lib\arm-elf\2.95.3\ > > Now linking with: > $ arm-elf-ld -e0x8000 -o test test.o -lc -lgcc > > I tried debugging with Insight 5.1 and received the following error on the > malloc() line: > str=(char *)malloc(80) [...] > (gdb) r > Starting program: /home/amit/mallocTest/test > _sbrk: Heap and stack collision It appears that your start-up code (the code, probably in assembly, that runs first and then calls main()) isn't setting up the stack and heap spaces properly. I don't know what newlib expects in regards to heap/stack... -- Grant Edwards grante@visi.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |