Tech selloff drags down major stocks as rotation into energy sectors intensifies. Oil prices rise, gold rebounds after tech sector's decline.