From dcae2e32f7d8a1ca5fb8c1e4aa81313be854dd73 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 18 Feb 2015 00:40:06 +0200 Subject: arm: Suppress tags about used cpu arch and extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When all the codepaths using manually set .arch/.fpu code is behind runtime detection, the elf attributes should be suppressed. This allows tools to know that the final built binary doesn't strictly require these extensions. Signed-off-by: Martin Storsjö --- libavutil/arm/asm.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavutil') diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 8479304f5f..943c1cea3f 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -49,11 +49,17 @@ #elif HAVE_ARMV5TE .arch armv5te #endif +#if HAVE_AS_OBJECT_ARCH +ELF .object_arch armv4 +#endif #if HAVE_NEON .fpu neon +ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch +ELF .eabi_attribute 12, 0 @ suppress Tag_Advanced_SIMD_arch #elif HAVE_VFP .fpu vfp +ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch #endif .syntax unified -- cgit v1.2.3