Similarly to i686, the ARM build target has multiple names, such as armhf, armv7 and so on. Currently we get duplicated symbol definitions for these targets while compiling the library. Each duplicated definition has its generic version from lib/builtins and an ARM-specialized version from lib/builtins/arm.
This patch fixes filtering for ARM to ignore the generic definitions if they have their ARM specializations.