Trevor Rosenthal signed a $4.5 million, one-year contract with the Giants on Thursday, although he’ll open his stint in San Francisco on the IL due to a hamstring strain.