This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Separate the heap from bss section
- To: Ho Shui Choy Stanley PS03B NCS <scho at ncs dot com dot sg>
- Subject: RE: [ECOS] Separate the heap from bss section
- From: "Lewin A.R.W. Edwards" <larwe at larwe dot com>
- Date: Sun, 13 May 2001 22:51:45 -0400
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
>I have found out that when the heap section is defined in the same memory
>region with bss section, then only it will use the specify heap. When the
Hi Stanley,
In working with the EB40 (not eCos) I have found a strange condition where
symbols imported from the linker script sometimes don't get the right
address. I haven't been able to isolate this problem yet, nor have I tested
with a newer snapshot of binutils (currently working with 2.10).
(well, to be accurate: in any linker script I've handwritten, the function
hasn't worked right. Only with other peoples' code does it seem to work
correctly, and I haven't been able to work out the difference yet).
Anyway, I think it likely you're getting a similar problem. The symbol
marking end of BSS is getting the same address as the start of BSS, which
is exactly the problem I have in my handwritten linker scripts.
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/
"... a man who is endowed with real qualities of leadership will be tempted
to refrain from taking part in political life; because [...] the situation
does not call for a man who has a capacity for constructive statesmanship
but rather for a man who is capable of bargaining for the favour of the
majority. Thus the situation will appeal to small minds and will attract
them accordingly."