Hi ORJ,
It's referred to as "Emergency Procedure" and may be as simple as climb straight ahead to 1500 ft then turn to a specified holding beacon, or more complex with an early turn and no acceleration until established on a track, or above an altitude etc. They all finish at a safe holding facility.
The TOGA Performance Limited mass is calculated, and an appropriate flex temperature (when actual mass entered) is given.