This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: linker scripts and linker sections
Hi Matthew,
> > It means that the address of __outvar_stop is not in valid memory.
> > This is because the linker has assigned it the address immediately
> > *after* the last of the *(.bss) sections.
>
> ok so i presume that using the SIZEOF macro would be more
> appropreate then ?
Yup.
> also it seems that some of the variables in .outvar section have
> been placed out of bounds as well,.. is this due to alignment issues
> or crossing page boundaries ?
The linker should never place variables in out-of-bounds memory. If
it does then there is a bug. Possibly you have a restricted address
space, but the linker does not know about this (because the linker map
has not been set up to tell it about valid areas of memory).
Cheers
Nick