French workers have taken to the streets to protest job losses and the bonuses paid to executives.