From ab11be0becb90542f10d5713659b559842c53af2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 29 Mar 2016 15:15:17 +0200 Subject: [PATCH 1/2] libavutil: clean up unused FF_SYMVER macro There is nothing using it since commit d63443b9 (lavc: drop the av_fast_{re,m}alloc compatibility wrappers). Signed-off-by: Natanael Copa --- libavutil/internal.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/libavutil/internal.h b/libavutil/internal.h index 61784b5..69d63d5 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -177,34 +177,6 @@ #endif /** - * Define a function with only the non-default version specified. - * - * On systems with ELF shared libraries, all symbols exported from - * FFmpeg libraries are tagged with the name and major version of the - * library to which they belong. If a function is moved from one - * library to another, a wrapper must be retained in the original - * location to preserve binary compatibility. - * - * Functions defined with this macro will never be used to resolve - * symbols by the build-time linker. - * - * @param type return type of function - * @param name name of function - * @param args argument list of function - * @param ver version tag to assign function - */ -#if HAVE_SYMVER_ASM_LABEL -# define FF_SYMVER(type, name, args, ver) \ - type ff_##name args __asm__ (EXTERN_PREFIX #name "@" ver); \ - type ff_##name args -#elif HAVE_SYMVER_GNU_ASM -# define FF_SYMVER(type, name, args, ver) \ - __asm__ (".symver ff_" #name "," EXTERN_PREFIX #name "@" ver); \ - type ff_##name args; \ - type ff_##name args -#endif - -/** * Return NULL if a threading library has not been enabled. * Used to disable threading functions in AVCodec definitions * when not needed. -- 2.7.4 From d5db8cb4ffb69ad072caf0ff0c4901768b9ac74c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 29 Mar 2016 15:19:24 +0200 Subject: [PATCH 2/2] configure: cleanup unused checks for symver Nothing uses symvers since commit d63443b9 (lavc: drop the av_fast_{re,m}alloc compatibility wrappers). Signed-off-by: Natanael Copa --- configure | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/configure b/configure index e550547..5e788ac 100755 --- a/configure +++ b/configure @@ -350,7 +350,6 @@ Toolchain options: Advanced options (experts only): --malloc-prefix=PREFIX prefix malloc and related names with PREFIX --custom-allocator=NAME use a supported custom allocator - --disable-symver disable symbol versioning --enable-hardcoded-tables use hardcoded tables instead of runtime generation --disable-safe-bitstream-reader disable buffer boundary checking in bitreaders @@ -1766,7 +1765,6 @@ BUILTIN_LIST=" " HAVE_LIST_CMDLINE=" inline_asm - symver yasm " @@ -1940,8 +1938,6 @@ TOOLCHAIN_FEATURES=" inline_asm_nonlocal_labels pragma_deprecated rsync_contimeout - symver_asm_label - symver_gnu_asm vfp_args xform_asm xmm_clobbers @@ -2239,7 +2235,6 @@ fast_unaligned_if_any="aarch64 ppc x86" simd_align_16_if_any="altivec neon sse" # system capabilities -symver_if_any="symver_asm_label symver_gnu_asm" valgrind_backtrace_deps="!optimizations valgrind_valgrind_h" # threading support @@ -4520,7 +4515,6 @@ case $target_os in enabled shared && add_ldflags -Wl,-brtl ;; android) - disable symver enable section_data_rel_ro SLIB_INSTALL_NAME='$(SLIBNAME)' SLIB_INSTALL_LINKS= @@ -4548,13 +4542,11 @@ case $target_os in SLIB_CREATE_DEF_CMD='$(Q)perl $(SRC_PATH)/compat/solaris/make_sunver.pl $$(filter %.ver,$$^) $(OBJS) | grep -v @ > $(SUBDIR)lib$(NAME).ver-sol2' ;; netbsd) - disable symver oss_indev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio" enabled gcc || check_ldflags -Wl,-zmuldefs ;; openbsd|bitrig) - disable symver SHFLAGS='-shared' SLIB_INSTALL_NAME='$(SLIBNAME).$(LIBMAJOR).$(LIBMINOR)' SLIB_INSTALL_LINKS= @@ -4562,7 +4554,6 @@ case $target_os in oss_outdev_extralibs="-lossaudio" ;; dragonfly) - disable symver ;; freebsd) ;; @@ -4644,7 +4635,6 @@ case $target_os in fi ;; win32|win64) - disable symver if enabled shared; then # Link to the import library instead of the normal static library # for shared libs. @@ -5928,15 +5918,6 @@ elif test_ldflags -Wl,-M,$TMPV; then append SHFLAGS '-Wl,-M,\$(SUBDIR)lib\$(NAME).ver-sol2' fi -check_cc <