core: arm: Add proper support for GCC 4.8 and 4.9