Shelving on Rubble Stone Foundation
You really don't want to penetrate that wall at all nor especially hang anything off of it. It's really just meant to work vertically, not laterally.

The best &amp; only right shelving method is to hang the shelving from the ceiling joists, then you can have as many as you want. 2x4's resting against the wall with a lot of weight is perfectly fine.