While I don't have an official reference, I seem to remember that Boeing's "Jet Transport Performance Methods" handbook (downloadable on the web) stated that 2nd segment gradient is applicable only at the beginning of climb, ie 35ft.
You still have to fulfill all applicable obstacle requirements and final segment gradient (IIRC also applicable only at the beginning of the final segment). Plus gradient at 1500 ft has to be "positive"