backport a arm specific -fno-common fix [ARM, sim] Fix build error and warnings 851c0536cabb661847c45c73ebd796eb3299066b