[FFmpeg-cvslog] lavc/h264dsp: move RISC-V fn pointers to .data.rel.ro

Rémi Denis-Courmont git at videolan.org
Sat Nov 16 20:44:20 EET 2024


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 16 08:57:54 2024 +0200| [c3051d94a7939de93acd647d3a1719ce56c0c4f5] | committer: Rémi Denis-Courmont

lavc/h264dsp: move RISC-V fn pointers to .data.rel.ro

This should fix PIC builds.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3051d94a7939de93acd647d3a1719ce56c0c4f5
---

 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



More information about the ffmpeg-cvslog mailing list