Coronal holes are magnetically open regions from which the solar wind streams. Magnetic reconnection has been invoked to reconcile the apparently rigid rotation of coronal holes with the differential rotation of magnetic flux in the photosphere. This mechanism might also be relevant to the formation of the slow solar wind, the properties of which seem to indicate an origin from the opening of closed magnetic field lines. We have developed a global MHD model to study the effect of differential rotation on the coronal magnetic field. Starting from a magnetic flux distribution similar to that of Wang et al., which consists of a bipolar magnetic region added to a background dipole field, we applied differential rotation over a period of 5 solar rotations. The evolution of the magnetic field and of the boundaries of coronal holes are in substantial agreement with the findings of Wang et al.. We identified examples of interchange reconnection and other changes of topology of the magnetic field. Possible consequences for the origin of the slow solar wind are also discussed.