How is «غُلَامُ» analysed in «جَاءَنِي الْمَضْرُوبُ غُلَامُهُ»?

Relative Nouns — Ṣilah, ʿĀʾid, Forms and Syntax