[FFmpeg-devel] [PATCH 1/3] lavc/h264dsp: move RISC-V fn pointers to .data.rel.ro

Martin Storsjö martin at martin.st
Sat Nov 16 10:46:02 EET 2024


On Sat, 16 Nov 2024, Rémi Denis-Courmont wrote:

> This should fix PIC builds.
> ---
> libavcodec/riscv/h264dsp_rvv.S | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/riscv/h264dsp_rvv.S b/libavcodec/riscv/h264dsp_rvv.S
> index 079896b17b..05d077f44e 100644
> --- a/libavcodec/riscv/h264dsp_rvv.S
> +++ b/libavcodec/riscv/h264dsp_rvv.S
> @@ -160,7 +160,7 @@ h264_weight 8, 16
>
>         .global ff_h264_weight_funcs_8_rvv
>         .hidden ff_h264_weight_funcs_8_rvv
> -const ff_h264_weight_funcs_8_rvv
> +const ff_h264_weight_funcs_8_rvv, relocate=1
>         .irp    w, 16, 8, 4, 2
> #if __riscv_xlen == 32
>         .word   ff_h264_weight_pixels\w\()_8_rvv
> -- 
> 2.45.2

LGTM

// Martin


More information about the ffmpeg-devel mailing list