mirror of https://git.ffmpeg.org/ffmpeg.git
arm: Suppress tags about used cpu arch and extensions
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ö <martin@martin.st> (cherry picked from commitdcae2e32f7
andb77e335e44
) Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit9841654c15
) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0b25a4d253
commit
436f530a51
|
@ -1466,6 +1466,7 @@ HAVE_LIST="
|
||||||
alsa_asoundlib_h
|
alsa_asoundlib_h
|
||||||
altivec_h
|
altivec_h
|
||||||
arpa_inet_h
|
arpa_inet_h
|
||||||
|
as_object_arch
|
||||||
asm_mod_q
|
asm_mod_q
|
||||||
asm_mod_y
|
asm_mod_y
|
||||||
asm_types_h
|
asm_types_h
|
||||||
|
@ -3964,6 +3965,11 @@ EOF
|
||||||
|
|
||||||
[ $target_os != win32 ] && enabled_all armv6t2 shared !pic && enable_weak_pic
|
[ $target_os != win32 ] && enabled_all armv6t2 shared !pic && enable_weak_pic
|
||||||
|
|
||||||
|
# llvm's integrated assembler supports .object_arch from llvm 3.5
|
||||||
|
[ "$objformat" = elf ] && check_as <<EOF && enable as_object_arch
|
||||||
|
.object_arch armv4
|
||||||
|
EOF
|
||||||
|
|
||||||
elif enabled mips; then
|
elif enabled mips; then
|
||||||
|
|
||||||
check_inline_asm loongson '"dmult.g $1, $2, $3"'
|
check_inline_asm loongson '"dmult.g $1, $2, $3"'
|
||||||
|
|
|
@ -43,11 +43,17 @@
|
||||||
#elif HAVE_ARMV5TE
|
#elif HAVE_ARMV5TE
|
||||||
.arch armv5te
|
.arch armv5te
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_AS_OBJECT_ARCH
|
||||||
|
ELF .object_arch armv4
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAVE_NEON
|
#if HAVE_NEON
|
||||||
.fpu 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
|
#elif HAVE_VFP
|
||||||
.fpu vfp
|
.fpu vfp
|
||||||
|
ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.syntax unified
|
.syntax unified
|
||||||
|
|
Loading…
Reference in New Issue