Feedback Control of Mechanical Systems under Linearized Constraints