SANTA CLARA — The San Francisco 49ers have signed first-round pick Reuben Foster to a four-year deal.

The deal announced Friday gives San Francisco eight of its 10 draft picks under contract. No. 3 overall pick Solomon Thomas and quarterback C.J. Beathard, their third-round selection, remain unsigned.

San Francisco traded back into the first round to select Foster 31st overall to upgrade their linebackers. He was named first-team All-America by The Associated Press, SEC Championship Game MVP and won the Butkus Award as the nation’s top linebacker last season for Alabama.

The Niners also signed offensive lineman Andrew Lauderdale to a two-year deal and waived safety Malik Golden to make room on the roster.