During investigation of PR32319,
I found that it is useful to output size when address ranges
are dumped. It is useful when comparing outputs produced
by different linkers.
In that case address ranges can look very different, when they are the same at fact.
Difference comes from different low address because of different address of .text.
Examples below.
Dumped gold output of llc binary (with patch):
Low/High address = [0x120c576, 0x1215df8] (Size: 0x9882), CU id = 0 Low/High address = [0x1215df8, 0x1215e0a] (Size: 0x12), CU id = 0 Low/High address = [0x1215e0a, 0x1215e45] (Size: 0x3b), CU id = 0
Dumped LLD output for the same place (with patch):
Low/High address = [0x31f80f6, 0x3201978] (Size: 0x9882), CU id = 0 Low/High address = [0x3201978, 0x320198a] (Size: 0x12), CU id = 0 Low/High address = [0x320198a, 0x32019c5] (Size: 0x3b), CU id = 0
And without this patch output does not allow to find out that ranges are the same in a fast way:
Low address = 0x120c576, High address = 0x1215df8, CU index = 0 Low address = 0x1215df8, High address = 0x1215e0a, CU index = 0 Low address = 0x1215e0a, High address = 0x1215e45, CU index = 0
vs
Low address = 0x31f80f6, High address = 0x3201978, CU index = 0 Low address = 0x3201978, High address = 0x320198a, CU index = 0 Low address = 0x320198a, High address = 0x32019c5, CU index = 0