How to dynamically compute space for LMA of .data section in ld script?

Ian Lance Taylor iant@google.com
Wed Jan 6 15:52:00 GMT 2010


"Jeffi Edward.J" <j.jeffi@yahoo.co.in> writes:

>   __sw_data_start = __code_end ;
>   __sw_data_end = __sw_data_start + 1000; /* using constant size 1000 may
> leave hole or cause inadequate space (overlapping)for LMA of .data */

__sw_data_end = __sw_data_start + SIZEOF(.data);

Ian



More information about the Gcc-help mailing list