Considers the index when extracting location lists from a .dwp file. The location list sections are added when constructing units.
Majority of the patch by David Blaikie.
@dblaikie:
I've extracted the cleanup portion of your patch with the intent to apply it separately.
Could this be a union, perhaps?