Pop star Miley Cyrus and music superproducer Linda Perry have teamed up to create a track for new gay rights drama Freeheld.
The film, starring Julianne Moore and Ellen Page as a couple fighting for pension benefits, had its world premiere at the Toronto International Film Festival.
The Wrecking Ballhitmaker took to Instagram to reveal she collaborated with famed writer Perry for a special tune in the movie.
Posting a photo of Moore, Page and co-star Michael Shannon, Cyrus wrote, "proud to be apart of @freeheldmovie singin a tune written by da (the) bad a** @jesusonmars (Perry) & thank you to this incredible cast for giving a face to this incredible story and shining light on the brutal dark truth of love vs the law!"
Cyrus has been a longtime gay rights advocate, while Perry has been openly gay for most of her career.
Freeheld is based on a 2007 documentary, which centred on Laurel Hester - a New Jersey cop played by Moore - who challenged government officials and demanded pension benefits for her same-sex partner, Stacie Andree, portrayed by Page, as she battled lung cancer.
The film is due to be released in New Zealand November 26.