Mel Gibson and Andrew Garfield are in early talks to come on board World War II drama “Hacksaw Ridge.”

If the deals go through, Gibson will direct the movie, based on the life of Desmond T. Doss, the first conscientious objector to win the Congressional Medal of Honor for saving dozens of soldiers during the Battle of Okinawa while serving as a medic.

Garfield would portray Doss, who was a Seventh Day Adventist and received two Bronze Stars and three Purple Hearts.

David Permut and Bill Mechanic are producing with Cross Creek Pictures’ Brian Oliver and Tyler Thompson. Cross Creek is also financing.

Walden Media had been involved with backing the project but is no longer doing so.

Doss’ story was made into the 2004 TV documentary “The Conscientious Objector.”

Garfield starred in “99 Homes,” which premiered at the Toronto Film Festival. Gibson’s directing credits include “Apocalypto,” “Braveheart” and “The Passion of the Christ.”

The news was first reported by The Hollywood Reporter.