4.7.1 Sizeof Operator

The .sizeof.(section_name) operator can be used to obtain the size in bytes of a specific section after the link process has completed. For example, to find the final size of the .data section, use:
.word .sizeof.(.data)