As DW_AT_rnglists_base points after the header and headers have different sizes for DWARF32 and DWARF64, we have to use the format of the CU to shift the offset correctly in order to extract the referenced range list table.
The patch also changes the type of RangeSectionBase because in DWARF64 it is 8-bytes long.
What is tee %t.di.log used for?