WARNING: “__aeabi_uldivmod” Undefined symbol in opendla.ko

Hi everyone,
I am trying to build kernel module driver (KMD) for NVDLA NVIDIA’s Deep Learning Accelerator and got the following error at the end.
image

After doing some research on google I found that it is due to 64bit operations (especially 64bit division) present in the kmd that is causing the errors. After further investigation I found that the kmd was written for 64bit architecture while I am trying to compile it for 32bit (ARM cortex A9) processor. some people online have suggested to use -lgcc, which will take care the issue.

Could anyone help me in editing the makefile it link the linker library libgcc.

Thanks in advance.