[FFmpeg-devel] [PATCH] Fix compilation of ARM assembly on mingw32ce
Måns Rullgård
mans
Wed Mar 10 22:37:25 CET 2010
Martin Storsj? <martin at martin.st> writes:
> Hi,
>
> SVN rev 22404 broke compilation on mingw32ce, giving this kind of errors:
> libavcodec/arm/dsputil_arm.S:154: Warning: .size pseudo-op used outside of
> .def/.endef ignored.
> libavcodec/arm/dsputil_arm.S:154: Error: junk at end of line, first
> unrecognized character is `f'
>
> The attached patch is one way of fixing this; according to the gas manual,
> this .size syntax is only valid for ELF, not for COFF. (What about
> mach-o?)
Mach-o has bigger problems.
> diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S
> index 96b5864..17139b4 100644
> --- a/libavcodec/arm/asm.S
> +++ b/libavcodec/arm/asm.S
> @@ -36,7 +36,7 @@ ELF .eabi_attribute 25, \val
>
> .macro function name, export=0
> .macro endfunc
> - .size \name, . - \name
> +ELF .size \name, . - \name
> .endfunc
> .purgem endfunc
> .endm
OK
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list