For RISC-V and MIPS DL_RO_DYN_SECTION is defined as 1. Hence the .dynamic section is not relocated in glibc's function elf_get_dynamic_section().
See
sysdeps/riscv/dl-relocate-ld.h:23: #define DL_RO_DYN_SECTION 1
sysdeps/mips/dl-relocate-ld.h:23: #define DL_RO_DYN_SECTION 1
For RISC-V and MIPS DL_RO_DYN_SECTION is defined as 1. Hence the .dynamic section is not relocated in glibc's function elf_get_ dynamic_ section( ).
See
sysdeps/ riscv/dl- relocate- ld.h:23:
#define DL_RO_DYN_SECTION 1
sysdeps/ mips/dl- relocate- ld.h:23:
#define DL_RO_DYN_SECTION 1