Unless your departure is along a valley you should be able to turn away from the high/highest ground. This might be contrary to other traffic or airways etc, but you will be operating under a "Mayday" and your priority will be to clear terrain. Having done that you can then change your trousers and sort yourself out.
If your departure is along or into a valley, e.g. Chambery, Innsbruck, Geneva etc, then there will be special procedures to follow in the event of engine failure as described.