Clean up code: resolve coredump of the linker when linking arcv1 and arcv2 objects