Ian Lance Taylor-3 wrote: > > "Jeffi Edward.J" <j.jeffi@xxxxxxxxxxx> 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 > > Hi, Thanks for the reply Ian. I tried SIZEOF(.data) too. The GNU linker again reports error since the .data section has not been defined at the calculation point. i.e again its a forward reference. Have I missed something in my script so that SIZEOF() is not working? Please suggest. Regards, Jeffi -- View this message in context: http://old.nabble.com/How-to-dynamically-compute-space-for-LMA-of-.data-section-in-ld-script--tp27026793p27050519.html Sent from the gcc - Help mailing list archive at Nabble.com.