How to limit both the size and the address range of sections in ld script?
Pan ruochen
panruochen@gmail.com
Fri Mar 20 09:34:00 GMT 2009
> Start off SECTIONS with
> . = 0x80040000
>
>> If one of the conditions is false, I wish LD report an error.
>
> After output sections,
> ASSERT (. < 0x20000, "too big")
>
> --
> Alan Modra
> Australia Development Lab, IBM
>
The start address of sections is not sure to be 0x80040000, It may be
adjusted dynamically before linking.
Best Regards
PRC
Mar 20,2009
More information about the Binutils
mailing list