The scenes with Black Hawk helicopters were filmed using Huey's, the helicopters themselves were digitally replaced, but the soldiers jumping in and out and the dust kick-back was real.
The iconic "Crossed Sword" gates of Baghdad were actually rented cranes, which were overlaid with CGI in post production.