1From 93f277f05cc71f69930bd680ac6eae5457b963f3 Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> 3Date: Sat, 16 Nov 2024 08:57:54 +0200 4Subject: [PATCH] lavc/h264dsp: move RISC-V fn pointers to .data.rel.ro 5 6This should fix PIC builds. 7 8Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/c3051d94a7939de93acd647d3a1719ce56c0c4f5] 9Signed-off-by: Khem Raj <raj.khem@gmail.com> 10--- 11 libavcodec/riscv/h264dsp_rvv.S | 2 +- 12 1 file changed, 1 insertion(+), 1 deletion(-) 13 14diff --git a/libavcodec/riscv/h264dsp_rvv.S b/libavcodec/riscv/h264dsp_rvv.S 15index 422ac02..97c6708 100644 16--- a/libavcodec/riscv/h264dsp_rvv.S 17+++ b/libavcodec/riscv/h264dsp_rvv.S 18@@ -176,7 +176,7 @@ endfunc 19 20 .global ff_h264_weight_funcs_8_rvv 21 .hidden ff_h264_weight_funcs_8_rvv 22-const ff_h264_weight_funcs_8_rvv 23+const ff_h264_weight_funcs_8_rvv, relocate=1 24 .irp w, 16, 8, 4, 2 25 #if __riscv_xlen == 32 26 .word ff_h264_weight_pixels\w\()_8_rvv 27