This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU LD: Linker script generating incorrect address


On Tue, 21 May 2013 06:26:02 +0200, Jens Bauer wrote:
>                 0x00005c64                _eustack = .
>                 0x00000100                _lustack = (_eustack - _sustack)
>                 0x10008000                _stack = (ORIGIN (sram) + 0x8000)
>                 0x1000239c                _eheap = (_stack - _lustack)
> 
> -Shouldn't this be approximately 0x10007f00 ?

I fixed this by using SIZEOF(.ustack) instead of calculating the size manually.
-The problem is solved, but I still wonder why the results were not those I expected.


Love
Jens


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