Gluon shadowing and hadron production at RHIC