Iis this because of associated sections ? That you cannot get the section size ? Can you please let us know why you can't get the section size from the layout after references / layout before references. I am not in agreement for this as there is not a use of this on MachO or ELF. http://reviews.llvm.org/D4042