There wouldn't be a silver bullet. We'd need a combination of techniques and less developed countries would probably bear the brunt of the suffering.
It is also possible the huge and growing moron class would buy food and throw it away just to thumb their nose at "da gubbmit fer tryin' to tell meh what tado", and politicians would claim the jury is still out on this "climate" stuff, then we end up with a global catastrophe despite possessing the resources to prevent it. After all: we are perfectly capable of feeding everyone alive right now but we don't, not even in a first-world country like the USA.
Thanks to plastic, greenhouses are cheap and easy to make, so even poorer countries would fare reasonably well. What is harder to predict is how well greenhouses already in colder climates would fare.
Also, a few years of cooling might counteract global warming a little, although this would probably end up just giving more fuel to the "keep calm and burn coal" camp. Not much point in installing solar panels when the sky is dark.