fix reloc masks to correct global offsets