PR40525 points out that we currently encode the length of location expressions with a short, which is correct for DWARF4 and earlier, but should be a uleb128 in DWARF5. This patch corrects this on both producer and consumer side.
Of the 3 modified test cases, 1 addresses the producer side and 2 the consumer side.