I own the 7d, not the 5d, but can assure you that all Maxxum/Dynax lenses, with the exception of the 3X-1X macro, will work correctly on your 5D.
In fact they tend to give slightly better quality results, due to the 1.52x cropping factor. The circle of light going through the lens is designed to hit a 35mm frame. On the 5D/7D the sensor is smaller than 35mm, therefore the circle of light partly falls outside of the sensor frame. This smaller capture area effectively cuts off the light that passes through the outer edges of the lens elements, where they're less effective at eliminating distortion.
The downside is that this creates the 1.52 crop factor. IE: a 24mm lens will now provide a ~36mm focal length. On the upside, a 300mm lens will now be a ~450mm.
This crop factor is not unique to the 5D/7D cameras but also to all other so called APS-C sized sensor cameras such as the Canon D20, Nikon D70, pentax IstD Etc.