Producers of metals, grains and other raw materials rose as the U.S. dollar gave back some of its gains and deal activity picked up in the building-materials sphere.

Martin Marietta Materials agreed to buy limestone supplier Lhoist North America in a transaction valued at $13.5 billion, including debt.

Owens Corning shares surged after the maker of building gear, known for its bright pink fiberglass building insulation, said it had drawn more unsolicited takeover interest after signing a $10 billion deal.

Data-center demand for electricity is driving up power costs for steel companies, according to a new report from the trade group Steel Manufacturers Association.

Write to Rob Curran at rob.curran@dowjones.com