Skip to content

[PW_SID:1067709] perf symbol: Add RISCV case in get_plt_sizes#1628

Open
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1067709
Open

[PW_SID:1067709] perf symbol: Add RISCV case in get_plt_sizes#1628
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1067709

Conversation

@linux-riscv-bot
Copy link

PR for series 1067709 applied to workflow__riscv__fixes

Name: perf symbol: Add RISCV case in get_plt_sizes
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1067709
Version: 1

According to RISC-V psABI specification, the PLT (Program Linkage Table)
has the following layout:
- The first PLT entry occupies two 16-byte entries (32 bytes total)
- Subsequent PLT entries take up 16 bytes each

This aligns with the binutils-gdb implementation which defines the same
PLT sizes for RISC-V architecture.

Update get_plt_sizes() to set plt_header_size=32 and plt_entry_size=16
for EM_RISCV, matching the architecture's standard ABI.

Since AARCH64, LOONGARCH, and RISCV have the same PLT size definition,
they are merged together.

Link: https://github.com/riscv-non-isa/riscv-elf-psabi-doc
Link: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=bfd/elfnn-riscv.c

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 137.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1003.72 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1342.04 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.70 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.70 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.73 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 81.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
kdoc
Desc: Detects for kdoc errors
Duration: 0.84 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.21 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "perf symbol: Add RISCV case in get_plt_sizes"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants