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

Rémi Denis-Courmont remi at remlab.net
Sat Nov 16 09:00:15 EET 2024


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



More information about the ffmpeg-devel mailing list