This patch enables yaml2elf to emit the .debug_ranges section.
Thanks. A number of relatively minor test comments only from me.
Nit: you need an extra space to make these line up with the CONTENT checks.
You can make this DWARF-LE-CONTENT-NEXT since it should follow the EntrySize (or you can add extra directives to make it do so). Same goes for the big endian version.
Nit: It doesn't matter much, but I'd make AddrSize: 0x8 from here on, since it is the natural address size of X86_64
I'd avoid using 0 for both high and low, since that is a special meaning for .debug_ranges. Perhaps 1 and 2 would be better. Also, perhaps worth an extra case showing that a) 0, 0 can be used explicitly, and that b) 0xffffffffffffffff, <something> can be used too, since those are both special kinds of entries in the table. You could put them in the original pair of tests if you want, or in a new case, whichever you prefer.
Nit: don't pad your numbers with leading zeros unless necessary (I don't think it is necessary here). Same goes throughout.
LGTM, with one remaining suggestion.
Up to you, but the "don't pad unnecessarily" comment also applies to these addresse and the AddrSize field in this and the other examples. I don't mind if you think it's useful to have them there though.