[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 22/24] linux-user: permit RISC-V CFI dynamic entry in VDSO
From: |
Deepak Gupta |
Subject: |
[PATCH 22/24] linux-user: permit RISC-V CFI dynamic entry in VDSO |
Date: |
Thu, 25 Jul 2024 16:46:11 -0700 |
RISC-V CFI use new processor-specific dynamic entry in ELF. Permit it in
VDSO post-processing script.
Signed-off-by: Jim Shu <jim.shu@sifive.com>
Signed-off-by: Deepak Gupta <debug@rivosinc.com>
---
linux-user/gen-vdso-elfn.c.inc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/linux-user/gen-vdso-elfn.c.inc b/linux-user/gen-vdso-elfn.c.inc
index 95856eb839..59c818eb11 100644
--- a/linux-user/gen-vdso-elfn.c.inc
+++ b/linux-user/gen-vdso-elfn.c.inc
@@ -273,6 +273,13 @@ static void elfN(process)(FILE *outf, void *buf, bool
need_bswap)
errors++;
break;
+ case PT_LOPROC + 2:
+ /* RISCV_ZICFILP_PLT: for RISC-V zicfilp extension */
+ if (ehdr->e_machine == EM_RISCV) {
+ break;
+ }
+ goto do_default;
+
case PT_LOPROC + 3:
if (ehdr->e_machine == EM_PPC64) {
break; /* DT_PPC64_OPT: integer bitmask */
--
2.44.0
- [PATCH 07/24] disas/riscv: enabled `lpad` disassembly, (continued)
- [PATCH 07/24] disas/riscv: enabled `lpad` disassembly, Deepak Gupta, 2024/07/25
- [PATCH 10/24] target/riscv: Add zicfiss extension, Deepak Gupta, 2024/07/25
- [PATCH 11/24] target/riscv: introduce ssp and enabling controls for zicfiss, Deepak Gupta, 2024/07/25
- [PATCH 13/24] target/riscv: implement zicfiss instructions, Deepak Gupta, 2024/07/25
- [PATCH 16/24] target/riscv: shadow stack mmu index for shadow stack instructions, Deepak Gupta, 2024/07/25
- [PATCH 15/24] target/riscv: mmu changes for zicfiss shadow stack protection, Deepak Gupta, 2024/07/25
- [PATCH 17/24] linux-user/syscall: introduce prctl for shadow stack enable/disable, Deepak Gupta, 2024/07/25
- [PATCH 18/24] linux-user/riscv: setup/teardown zicfiss shadow stack for qemu-user, Deepak Gupta, 2024/07/25
- [PATCH 19/24] disas/riscv: enable disassembly for zicfiss instructions, Deepak Gupta, 2024/07/25
- [PATCH 20/24] disas/riscv: enable disassembly for compressed sspush/sspopchk, Deepak Gupta, 2024/07/25
- [PATCH 22/24] linux-user: permit RISC-V CFI dynamic entry in VDSO,
Deepak Gupta <=
- [PATCH 21/24] target/riscv: add trace-hooks for each case of sw-check exception, Deepak Gupta, 2024/07/25
- [PATCH 23/24] linux-user: Add RISC-V zicfilp support in VDSO, Deepak Gupta, 2024/07/25
- [PATCH 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprobe syscall, Deepak Gupta, 2024/07/25