This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Separate the heap from bss section



>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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]